X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=parsers.c;h=eab5e76bdf8e37293891e1fea7f2d6ee57a2578f;hp=06f1ae8bfc3db61f5051400c91c2c2c05b38282b;hb=80049eac50d2172ed7c884fa0ea4a8648e4ec389;hpb=57c5f16af5d991b814d96fcb8e7b58c706a93c62 diff --git a/parsers.c b/parsers.c index 06f1ae8b..eab5e76b 100644 --- a/parsers.c +++ b/parsers.c @@ -4067,7 +4067,8 @@ static jb_err server_http(struct client_state *csp, char **header) return JB_ERR_PARSE; } - if (csp->http->status == 206) + if (csp->http->status == 101 || + csp->http->status == 206) { csp->content_type = CT_TABOO; } @@ -4586,7 +4587,11 @@ jb_err get_destination_from_headers(const struct list *headers, struct http_requ return JB_ERR_PARSE; } - p = strdup_or_die(host); + p = string_tolower(host); + if (p == NULL) + { + return JB_ERR_MEMORY; + } chomp(p); q = strdup_or_die(p); @@ -4673,7 +4678,11 @@ jb_err get_destination_from_https_headers(const struct list *headers, struct htt return JB_ERR_PARSE; } - p = strdup_or_die(host); + p = string_tolower(host); + if (p == NULL) + { + return JB_ERR_MEMORY; + } chomp(p); q = strdup_or_die(p);