summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/catlfish_web.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/catlfish_web.erl b/src/catlfish_web.erl
index 0518597..5ee5743 100644
--- a/src/catlfish_web.erl
+++ b/src/catlfish_web.erl
@@ -25,7 +25,8 @@ loop(Req, Module) ->
case Req:get(method) of
'GET' ->
Query = Req:parse_qs(),
- Result = case http_auth:verify_auth(AuthHeader, "GET", "/" ++ Path, Query) of
+ {_, RawQuery, _} = mochiweb_util:urlsplit_path(Req:get(raw_path)),
+ Result = case http_auth:verify_auth(AuthHeader, "GET", "/" ++ Path, RawQuery) of
failure ->
{403, [{"Content-Type", "text/plain"}], "Invalid credentials"};
success ->