aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 8d558b7..498181b 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -148,7 +148,7 @@ headers(Req) ->
body(Req) ->
{Length, Req2} = cowboy_http_req:header('Content-Length', Req),
case Length of
- "" -> {error, badarg};
+ undefined -> {error, badarg};
_Any ->
Length2 = list_to_integer(Length),
body(Length2, Req2)