aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-12-02 16:09:34 +0100
committerLoïc Hoguin <[email protected]>2013-12-02 16:09:34 +0100
commit02a04b1a562b1aa454bae98764da5935f12da3c8 (patch)
tree343c3231f69f61d753d6f347c0f2d52afe24b3fd /src
parent26058faee650b00eb4a9356db77402e0482b48cd (diff)
parentb2511f15a0999c77950f4eb3985c1b76ba03f766 (diff)
downloadcowboy-02a04b1a562b1aa454bae98764da5935f12da3c8.tar.gz
cowboy-02a04b1a562b1aa454bae98764da5935f12da3c8.tar.bz2
cowboy-02a04b1a562b1aa454bae98764da5935f12da3c8.zip
Merge branch 'to_hex_fix' of git://github.com/matthias-endler/cowboy
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index ac4a30f..499173c 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -1030,11 +1030,11 @@ urlencode(<<>>, Acc, _Plus, _Upper) ->
-spec tohexu(byte()) -> byte().
tohexu(C) when C < 10 -> $0 + C;
-tohexu(C) when C < 17 -> $A + C - 10.
+tohexu(C) when C < 16 -> $A + C - 10.
-spec tohexl(byte()) -> byte().
tohexl(C) when C < 10 -> $0 + C;
-tohexl(C) when C < 17 -> $a + C - 10.
+tohexl(C) when C < 16 -> $a + C - 10.
%% Tests.