fix(server): skip automatic Content-Length header for HTTP 304 responses#1801
fix(server): skip automatic Content-Length header for HTTP 304 responses#1801seanmonstar merged 1 commit intohyperium:masterfrom
Conversation
seanmonstar
left a comment
There was a problem hiding this comment.
This is a great start! This prevents adding a content-length: 0, but I believe there's another case that needs to be address also, which when there was a non-empty body. The body should still be dropped and no content-length should be written, I believe.
|
updated! dropped the body and not setting the content-length for |
|
HTTP 304 cannot have a body, so the case of HTTP 304 with body shouldn't happen, just saying. From RFC 7232.
|
|
Thanks! |
closes #1797