| 657 | |
| 658 | #ifdef H2_NG2_INVALID_HEADER_CB |
| 659 | static int on_invalid_header_cb(nghttp2_session *ngh2, |
| 660 | const nghttp2_frame *frame, |
| 661 | const uint8_t *name, size_t namelen, |
| 662 | const uint8_t *value, size_t valuelen, |
| 663 | uint8_t flags, void *user_data) |
| 664 | { |
| 665 | h2_session *session = user_data; |
| 666 | h2_stream *stream; |
| 667 | |
| 668 | ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1, APLOGNO(03456) |
| 669 | H2_SSSN_STRM_MSG(session, frame->hd.stream_id, |
| 670 | "invalid header '%.*s: %.*s'"), |
| 671 | (int)namelen, name, (int)valuelen, value); |
| 672 | stream = get_stream(session, frame->hd.stream_id); |
| 673 | if (stream) { |
| 674 | h2_stream_rst(stream, NGHTTP2_PROTOCOL_ERROR); |
| 675 | } |
| 676 | return 0; |
| 677 | } |
| 678 | #endif |
| 679 | |
| 680 | static ssize_t select_padding_cb(nghttp2_session *ngh2, |
nothing calls this directly
no test coverage detected