Explorar el Código

response.c: added missing assigment of MHD_HTTP_Header::value_size

Evgeny Grin (Karlson2k) hace 6 años
padre
commit
08ea0cc894
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/microhttpd/response.c

+ 1 - 0
src/microhttpd/response.c

@@ -111,6 +111,7 @@ add_response_entry (struct MHD_Response *response,
       free (hdr);
       free (hdr);
       return MHD_NO;
       return MHD_NO;
     }
     }
+  hdr->value_size = strlen (content);
   hdr->kind = kind;
   hdr->kind = kind;
   hdr->next = response->first_header;
   hdr->next = response->first_header;
   response->first_header = hdr;
   response->first_header = hdr;