Commit d2bbcc6
committed
Fix dasht-server-http serving "400 Bad Request" on requests for "/"
This was reported in #51. It's not clear to me if this only affects
macOS users.
The problem was the `grep` query changed in this commit doesn't match queries
for "/":
~ $ cat urls
/
/?
/?query
/foo
/bar
~ $ cat urls | grep '^/$\|^/?'
/?
/?query
The two patterns to match for are fairly simple, so they can instead be tested
for with simple string equality checks.1 parent 5a741da commit d2bbcc6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments