Lines Matching refs:has_header
627 static inline int has_header(const char *str, const char *header)
705 if (!has_header(s->headers, "\r\nUser-Agent: "))
708 if (!has_header(s->headers, "\r\nAccept: "))
714 if (!has_header(s->headers, "\r\nRange: ") && !post && (s->off > 0 || s->end_off || s->seekable == -1)) {
723 if (send_expect_100 && !has_header(s->headers, "\r\nExpect: "))
727 if (!has_header(s->headers, "\r\nConnection: ")) {
737 if (!has_header(s->headers, "\r\nHost: "))
740 if (!has_header(s->headers, "\r\nContent-Length: ") && s->post_data)
744 if (!has_header(s->headers, "\r\nContent-Type: ") && s->content_type)
747 if (!has_header(s->headers, "\r\nCookie: ") && s->cookies) {
755 if (!has_header(s->headers, "\r\nIcy-MetaData: ") && s->icy) {