Просмотр исходного кода

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

Evgeny Grin (Karlson2k) 6 лет назад
Родитель
Сommit
08ea0cc894
1 измененных файлов с 1 добавлено и 0 удалено
  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);
       return MHD_NO;
     }
+  hdr->value_size = strlen (content);
   hdr->kind = kind;
   hdr->next = response->first_header;
   response->first_header = hdr;