Skip to content
Browse files

Use constants instead of hard-coded values.

  • Loading branch information...
1 parent 6fc3aff commit b68a1d40bc0ff1b44c0c3705f89d07864eea35ac @fdmanana fdmanana committed with etrepum Aug 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mochiweb_request.erl
View
4 src/mochiweb_request.erl
@@ -381,8 +381,8 @@ ok({ContentType, ResponseHeaders, Body}) ->
%% @doc Return true if the connection must be closed. If false, using
%% Keep-Alive should be safe.
should_close() ->
- ForceClose = erlang:get(mochiweb_request_force_close) =/= undefined,
- DidNotRecv = erlang:get(mochiweb_request_recv) =:= undefined,
+ ForceClose = erlang:get(?SAVE_FORCE_CLOSE) =/= undefined,
+ DidNotRecv = erlang:get(?SAVE_RECV) =:= undefined,
ForceClose orelse Version < {1, 0}
%% Connection: close
orelse get_header_value("connection") =:= "close"

0 comments on commit b68a1d4

Please sign in to comment.
Something went wrong with that request. Please try again.