mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Increase buffer size for the range header
This should cover 2^64-2^64/2^64 H/T @julee PUBLISHED_FROM=bcc9f0193ab52375ece00a34c5758ddfe3b628c6
This commit is contained in:
parent
31c20ab32c
commit
15c333feb0
@ -5714,7 +5714,7 @@ static void mg_http_send_file2(struct mg_connection *nc, const char *path,
|
||||
path) > 0) {
|
||||
mg_handle_ssi_request(nc, path, opts);
|
||||
} else {
|
||||
char etag[50], current_time[50], last_modified[50], range[50];
|
||||
char etag[50], current_time[50], last_modified[50], range[70];
|
||||
time_t t = time(NULL);
|
||||
int64_t r1 = 0, r2 = 0, cl = st->st_size;
|
||||
struct mg_str *range_hdr = mg_get_http_header(hm, "Range");
|
||||
|
Loading…
Reference in New Issue
Block a user