| 1428 | } |
| 1429 | |
| 1430 | static inline int has_header(const char *str, const char *header) |
| 1431 | { |
| 1432 | /* header + 2 to skip over CRLF prefix. (make sure you have one!) */ |
| 1433 | if (!str) |
| 1434 | return 0; |
| 1435 | return av_stristart(str, header + 2, NULL) || av_stristr(str, header); |
| 1436 | } |
| 1437 | |
| 1438 | static int http_read_header(URLContext *h) |
| 1439 | { |
no test coverage detected