aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cow_http.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cow_http.erl b/src/cow_http.erl
index 704933b..5e8fa22 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -89,16 +89,11 @@ parse_fullpath(Fullpath) ->
parse_fullpath(<<>>, Path) ->
{Path, <<>>};
-parse_fullpath(<< $?, Rest/binary >>, Path) ->
- parse_fullpath_qs(Rest, Path, <<>>);
+parse_fullpath(<< $?, Qs/binary >>, Path) ->
+ {Path, Qs};
parse_fullpath(<< C, Rest/binary >>, SoFar) ->
parse_fullpath(Rest, << SoFar/binary, C >>).
-parse_fullpath_qs(<<>>, Path, Qs) ->
- {Path, Qs};
-parse_fullpath_qs(<< C, Rest/binary >>, Path, SoFar) ->
- parse_fullpath_qs(Rest, Path, << SoFar/binary, C >>).
-
-ifdef(TEST).
parse_fullpath_test() ->
{<<"*">>, <<>>} = parse_fullpath(<<"*">>),