aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-12-18 23:44:43 +0200
committerLoïc Hoguin <[email protected]>2014-12-18 23:44:43 +0200
commit4ca82cae43b273e0afab8ef06000098044f006c0 (patch)
tree239c7065bf018c01c986db180b4d861f8a845824 /src/cow_http_hd.erl
parent7d2b0850ced767af18007c1a6a309c1af074405d (diff)
downloadcowlib-4ca82cae43b273e0afab8ef06000098044f006c0.tar.gz
cowlib-4ca82cae43b273e0afab8ef06000098044f006c0.tar.bz2
cowlib-4ca82cae43b273e0afab8ef06000098044f006c0.zip
Improve cow_http_hd:parse_max_forwards/1 spec
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index f6e26f5..162e6ad 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -1256,7 +1256,7 @@ parse_last_modified_test_() ->
%% @doc Parse the Max-Forwards header.
--spec parse_max_forwards(binary()) -> integer().
+-spec parse_max_forwards(binary()) -> non_neg_integer().
parse_max_forwards(<< $0, R/bits >>) -> number(R, 0);
parse_max_forwards(<< $1, R/bits >>) -> number(R, 1);
parse_max_forwards(<< $2, R/bits >>) -> number(R, 2);