mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Do not prefix successfulresponse with "Error: "
It's confusing PUBLISHED_FROM=9158ccd920dabf92963e76aa96a988753b9c427d
This commit is contained in:
1 parent
383b2a48c5
commit
d6d956b9d8
1 file changed
+3
-2
@@ -36,8 +36,9 @@ static void s3_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
||||
switch (ev) {
|
||||
case MG_EV_HTTP_REPLY:
|
||||
if (nc2 != NULL) {
|
||||
mg_printf_http_chunk(nc2, "Error: %.*s", (int) hm->message.len,
|
||||
hm->message.p);
|
||||
mg_printf_http_chunk(nc2, "%s%.*s",
|
||||
(hm->resp_code == 200 ? "" : "Error: "),
|
||||
(int) hm->message.len, hm->message.p);
|
||||
mg_send_http_chunk(nc2, "", 0);
|
||||
}
|
||||
unlink_conns(nc);
|
||||
|
||||
Reference in new issue
Block a user