Skip to content

Commit

Permalink
http://code.google.com/p/mochiweb/issues/detail?id=12
Browse files Browse the repository at this point in the history
git-svn-id: http://mochiweb.googlecode.com/svn/trunk@75 583d1f64-3c3e-0410-8459-0f15fcd77d59
  • Loading branch information
bob.ippolito committed May 26, 2008
1 parent 8efb958 commit bb2dee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mochiweb_request.erl
Expand Up @@ -325,7 +325,8 @@ should_close() ->
andalso get_header_value("connection") =/= "Keep-Alive")
%% unread data left on the socket, can't safely continue
orelse (DidNotRecv
andalso get_header_value("content-length") =/= undefined).
andalso get_header_value("content-length") =/= undefined
andalso list_to_integer(get_header_value("content-length")) > 0).

%% @spec cleanup() -> ok
%% @doc Clean up any junk in the process dictionary, required before continuing
Expand Down

0 comments on commit bb2dee1

Please sign in to comment.