Closed GoogleCodeExporter closed 9 years ago
I must correct my post. Login box appears at browser, but it doesn't handle
login after that. It seems following helps:
static int should_keep_alive(const struct mg_connection *conn) {
const char *http_version = conn->request_info.http_version;
const char *header = mg_get_header(conn, "Connection");
/** keep-alive and authorization bug fix **/
if (conn->request_info.status_code == 401)
return 0;
/** end bug fix **/
return (header == NULL && http_version && !strcmp(http_version, "1.1")) ||
(header != NULL && !mg_strcasecmp(header, "keep-alive"));
}
Original comment by mhais...@gmail.com
on 10 Nov 2011 at 9:50
Original comment by valenok
on 23 Sep 2012 at 12:25
Original issue reported on code.google.com by
mhais...@gmail.com
on 10 Nov 2011 at 8:08