0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Merge branch 'to_hex_fix' of git://github.com/matthias-endler/cowboy

This commit is contained in:
Loïc Hoguin 2013-12-02 16:09:34 +01:00
commit 02a04b1a56

View file

@ -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.