We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9ba574 commit 0e8622fCopy full SHA for 0e8622f
lib_protocol/src/http/http_hdr_res.c
@@ -221,6 +221,11 @@ int http_hdr_res_parse(HTTP_HDR_RES *hdr_res)
221
/* data format: xxx info */
222
entry = (HTTP_HDR_ENTRY *) acl_array_index(hdr->entry_lnk, 0);
223
224
+ if (http_hdr_parse_version(hdr, entry->name) < 0) {
225
+ acl_msg_error("no HTTP/1.x in %s %s", entry->name, entry->value);
226
+ return (-1);
227
+ }
228
+
229
ptr = entry->value;
230
while (*ptr == ' ' || *ptr == '\t')
231
ptr++;
0 commit comments