mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-04 20:46:37 +08:00
Fix #1255
This commit is contained in:
parent
111551477a
commit
758572872d
@ -692,7 +692,7 @@ void mg_http_printf_chunk(struct mg_connection *c, const char *fmt, ...) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len) {
|
void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len) {
|
||||||
mg_printf(c, "%X\r\n", len);
|
mg_printf(c, "%lX\r\n", (unsigned long) len);
|
||||||
mg_send(c, buf, len);
|
mg_send(c, buf, len);
|
||||||
mg_send(c, "\r\n", 2);
|
mg_send(c, "\r\n", 2);
|
||||||
}
|
}
|
||||||
|
@ -270,7 +270,7 @@ void mg_http_printf_chunk(struct mg_connection *c, const char *fmt, ...) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len) {
|
void mg_http_write_chunk(struct mg_connection *c, const char *buf, size_t len) {
|
||||||
mg_printf(c, "%X\r\n", len);
|
mg_printf(c, "%lX\r\n", (unsigned long) len);
|
||||||
mg_send(c, buf, len);
|
mg_send(c, buf, len);
|
||||||
mg_send(c, "\r\n", 2);
|
mg_send(c, "\r\n", 2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user