Fix a bug when a range is requested and the request is too large.

This commit is contained in:
Emil Mikulic 2021-01-17 23:00:32 +11:00
parent c1cd3d0e2d
commit 8cca3b6c87
1 changed files with 3 additions and 0 deletions

View File

@ -1529,6 +1529,9 @@ static void default_reply(struct connection *conn,
conn->reply_type = REPLY_GENERATED;
conn->http_code = errcode;
/* Reset reply_start in case the request set a range. */
conn->reply_start = 0;
}
static void redirect(struct connection *conn, const char *format, ...)