forked from mirrors/kore
Unfuck content-length changes.
We want a content-length unless its 204 or status < 200.
This commit is contained in:
parent
7ce742f131
commit
09ed61187b
@ -1266,7 +1266,7 @@ http_response_normal(struct http_request *req, struct connection *c,
|
||||
}
|
||||
}
|
||||
|
||||
if (status != 204 && 99 < status && status < 200)
|
||||
if (status != 204 && status >= 200)
|
||||
kore_buf_appendf(header_buf, "content-length: %d\r\n", len);
|
||||
|
||||
kore_buf_append(header_buf, "\r\n", 2);
|
||||
|
Loading…
Reference in New Issue
Block a user