mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix a bug when a range is requested and the request is too large.
This commit is contained in:
parent
c1cd3d0e2d
commit
8cca3b6c87
@ -1529,6 +1529,9 @@ static void default_reply(struct connection *conn,
|
|||||||
|
|
||||||
conn->reply_type = REPLY_GENERATED;
|
conn->reply_type = REPLY_GENERATED;
|
||||||
conn->http_code = errcode;
|
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, ...)
|
static void redirect(struct connection *conn, const char *format, ...)
|
||||||
|
Loading…
Reference in New Issue
Block a user