diff options
author | Loïc Hoguin <[email protected]> | 2011-03-22 12:27:34 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-22 12:27:34 +0100 |
commit | c3a36246b5e1bb46257165ccbdf3ca3d37b5be38 (patch) | |
tree | 97f16989054b6f98322a4fb156f66c53d62bb00d /src/cowboy_http_protocol.erl | |
parent | d4c071c2d0b4e5fbd6277eaf48f9ad03c1e5d9df (diff) | |
download | cowboy-c3a36246b5e1bb46257165ccbdf3ca3d37b5be38.tar.gz cowboy-c3a36246b5e1bb46257165ccbdf3ca3d37b5be38.tar.bz2 cowboy-c3a36246b5e1bb46257165ccbdf3ca3d37b5be38.zip |
Explicitly ignore the return value of cowboy_http_req:reply in error_response.
Diffstat (limited to 'src/cowboy_http_protocol.erl')
-rw-r--r-- | src/cowboy_http_protocol.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 2ac4e54..9bb22c3 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -184,7 +184,7 @@ ensure_response(#http_req{resp_state=waiting}, State) -> -spec error_response(Code::http_status(), State::#state{}) -> ok. error_response(Code, #state{socket=Socket, transport=Transport, connection=Connection}) -> - cowboy_http_req:reply(Code, [], [], #http_req{ + _ = cowboy_http_req:reply(Code, [], [], #http_req{ socket=Socket, transport=Transport, connection=Connection, resp_state=waiting}), ok. |