Skip to content
Snippets Groups Projects
Commit d56ba01f authored by deuce's avatar deuce
Browse files

Just because there is a Location: header does not mean we should not send

a body.  Broken by HSTS enhancement.

There's a (small) possibility that the HSTS enhancement is now broken.
parent 1aa6315e
No related branches found
No related tags found
No related merge requests found
...@@ -1293,8 +1293,6 @@ static BOOL send_headers(http_session_t *session, const char *status, int chunke ...@@ -1293,8 +1293,6 @@ static BOOL send_headers(http_session_t *session, const char *status, int chunke
} }
if (session->req.send_location) { if (session->req.send_location) {
ret=-1; ret=-1;
session->req.send_content = FALSE;
send_entity = FALSE;
switch (session->req.send_location) { switch (session->req.send_location) {
case MOVED_PERM: case MOVED_PERM:
status_line=error_301; status_line=error_301;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment