Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
falahati committed Nov 17, 2022
1 parent 70c8974 commit 47f3df4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ parse_http_header(const struct HTTPProtocol *http_data, const char *data, size_t

/* By now we know it's HTTP. if hostname is set, parse request to see if
* they match. Otherwise, it's a match already */
if (http_data &&
(http_data->match_mode.http_match_hostname || http_data->match_mode.http_match_hostname)) {
if (http_data && http_data->match_mode.http_match_hostname) {
return parse_hostname(http_data, data, data_len);
} else {
return HTTP_MATCH;
Expand Down

0 comments on commit 47f3df4

Please sign in to comment.