Skip to content

Commit

Permalink
more dialyzer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Dec 28, 2010
1 parent afbc4b4 commit 7848e6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/mochiweb_http.erl
Expand Up @@ -154,7 +154,8 @@ call_body(Body, Req) ->
Body(Req).

handle_invalid_request(Socket) ->
handle_invalid_request(Socket, {'GET', {abs_path, "/"}, {0,9}}, []).
handle_invalid_request(Socket, {'GET', {abs_path, "/"}, {0,9}}, []),
exit(normal).

handle_invalid_request(Socket, Request, RevHeaders) ->
Req = new_request(Socket, Request, RevHeaders),
Expand Down
4 changes: 1 addition & 3 deletions src/mochiweb_request.erl
Expand Up @@ -245,9 +245,7 @@ stream_body(MaxChunkSize, ChunkFun, FunState, MaxBodyLength) ->
exit({body_too_large, content_length});
_ ->
stream_unchunked_body(Length, ChunkFun, FunState)
end;
Length ->
exit({length_not_integer, Length})
end
end.


Expand Down

0 comments on commit 7848e6b

Please sign in to comment.