Skip to content

Commit

Permalink
add more chars to pass in pathencode
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Mar 21, 2016
1 parent 0cd3496 commit 604f1ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hackney_url.erl
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ urlencode(<<C, Rest/binary>>, Acc, P=Plus, U=Upper) ->
if C >= $0, C =< $9 -> urlencode(Rest, <<Acc/binary, C>>, P, U);
C >= $A, C =< $Z -> urlencode(Rest, <<Acc/binary, C>>, P, U);
C >= $a, C =< $z -> urlencode(Rest, <<Acc/binary, C>>, P, U);
C =:= $.; C =:= $-; C =:= $~; C =:= $_ ->
C =:= $.; C =:= $-; C =:= $~; C =:= $_ , C =:= $*, C =:= $@ ->
urlencode(Rest, <<Acc/binary, C>>, P, U);
C =:= $(; C =:= $); C =:= $!, C =:= $$ ->
urlencode(Rest, <<Acc/binary, C>>, P, U);
C =:= $ , Plus ->
urlencode(Rest, <<Acc/binary, $+>>, P, U);
Expand Down

0 comments on commit 604f1ed

Please sign in to comment.