Ver Fonte

Argh, nasty typo fixed

Sergey Lyubka há 13 anos atrás
pai
commit
c1ab21ecfe
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      mongoose.c

+ 1 - 1
mongoose.c

@@ -2626,7 +2626,7 @@ static int parse_http_message(char *buf, int len, struct mg_request_info *ri) {
   int request_length = get_request_len(buf, len);
   if (request_length > 0) {
     // Reset attributes. DO NOT TOUCH is_ssl, remote_ip, remote_port
-    ri->remote_user = ri->request_method = ri->uri = ri->http_version;
+    ri->remote_user = ri->request_method = ri->uri = ri->http_version = NULL;
     ri->num_headers = 0;
     ri->status_code = -1;