mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Don't include a content-length in 204 responses
This commit is contained in:
parent
8d9404e9b6
commit
b0519af42a
2 changed files with 6 additions and 1 deletions
|
@ -1764,7 +1764,7 @@ no_content_length_in_204_response(Config) ->
|
|||
"(RFC7230 3.3.1, RFC7230 3.3.2)"),
|
||||
Client = raw_open(Config),
|
||||
ok = raw_send(Client, [
|
||||
"GET /resp/reply4/204 HTTP/1.1\r\n"
|
||||
"GET /resp/reply3/204 HTTP/1.1\r\n"
|
||||
"Host: localhost\r\n"
|
||||
"\r\n"]),
|
||||
{_, 204, _, Rest} = cow_http:parse_status_line(raw_recv_head(Client)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue