Skip to content

Commit 0e8622f

Browse files
author
zhengshuxin
committed
Fixed one bug in http module that the response's version wasn't got there.
1 parent b9ba574 commit 0e8622f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib_protocol/src/http/http_hdr_res.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ int http_hdr_res_parse(HTTP_HDR_RES *hdr_res)
221221
/* data format: xxx info */
222222
entry = (HTTP_HDR_ENTRY *) acl_array_index(hdr->entry_lnk, 0);
223223

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+
224229
ptr = entry->value;
225230
while (*ptr == ' ' || *ptr == '\t')
226231
ptr++;

0 commit comments

Comments
 (0)