diff options
author | Loïc Hoguin <[email protected]> | 2011-10-05 17:55:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-05 18:30:23 +0200 |
commit | c2be0f20736bf3867b044e2f2bf6eb4fb862daf1 (patch) | |
tree | eea78e7e90a2fddec0b521e71bc1e5891bc9f43a /src/cowboy_http_req.erl | |
parent | 8eb7af0a0b2c3a519b409bca04c4f029106cd7c9 (diff) | |
download | cowboy-c2be0f20736bf3867b044e2f2bf6eb4fb862daf1.tar.gz cowboy-c2be0f20736bf3867b044e2f2bf6eb4fb862daf1.tar.bz2 cowboy-c2be0f20736bf3867b044e2f2bf6eb4fb862daf1.zip |
Remove the 'HEAD' chunked_reply/3 clause
From the RFC:
The HEAD method is identical to GET except that the server MUST NOT
return a message-body in the response. The metainformation contained
in the HTTP headers in response to a HEAD request SHOULD be identical
to the information sent in response to a GET request.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r-- | src/cowboy_http_req.erl | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 808a108..889fb10 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -336,14 +336,6 @@ reply(Code, Headers, Body, Req=#http_req{socket=Socket, -spec chunked_reply(http_status(), http_headers(), #http_req{}) -> {ok, #http_req{}}. chunked_reply(Code, Headers, Req=#http_req{socket=Socket, transport=Transport, - method='HEAD', resp_state=waiting}) -> - Head = response_head(Code, Headers, [ - {<<"Date">>, cowboy_clock:rfc1123()}, - {<<"Server">>, <<"Cowboy">>} - ]), - Transport:send(Socket, Head), - {ok, Req#http_req{resp_state=done}}; -chunked_reply(Code, Headers, Req=#http_req{socket=Socket, transport=Transport, resp_state=waiting}) -> Head = response_head(Code, Headers, [ {<<"Connection">>, <<"close">>}, |