This commit is contained in:
Max Lv
2016-09-09 10:11:44 +08:00
parent 2ae356a1bb
commit e5c3254450
4 changed files with 33 additions and 30 deletions
+3
View File
@@ -63,6 +63,9 @@ parse_http_header(const char* data, size_t data_len, char **hostname) {
if (hostname == NULL)
return -3;
if (data_len == 0)
return -1;
result = get_header("Host:", data, data_len, hostname);
if (result < 0)
return result;