| 461 | } |
| 462 | |
| 463 | inline static bool |
| 464 | is_request_conditional(HTTPHdr *header) |
| 465 | { |
| 466 | uint64_t mask = (MIME_PRESENCE_IF_UNMODIFIED_SINCE | MIME_PRESENCE_IF_MODIFIED_SINCE | MIME_PRESENCE_IF_RANGE | |
| 467 | MIME_PRESENCE_IF_MATCH | MIME_PRESENCE_IF_NONE_MATCH); |
| 468 | return (header->presence(mask) && |
| 469 | (header->method_get_wksidx() == HTTP_WKSIDX_GET || header->method_get_wksidx() == HTTP_WKSIDX_HEAD)); |
| 470 | } |
| 471 | |
| 472 | static inline bool |
| 473 | is_port_in_range(int port, HttpConfigPortRange *pr) |
no test coverage detected