From d23105ccb76a32b20a4a08b5c9b6347a0714c27b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Nov 2014 21:30:48 +0900 Subject: [PATCH] Add note about pseudo header ordering validation in on_header_callback --- lib/includes/nghttp2/nghttp2.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index b136cbdd..d6fc8f16 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -1393,6 +1393,11 @@ typedef int (*nghttp2_on_begin_headers_callback)(nghttp2_session *session, * `nghttp2_check_header_value()` provide simple validation against * HTTP2 header field construction rule. * + * HTTP/2 specification requires that pseudo header fields (header + * field starting with ':') must appear in front of regular header + * fields. The library does not validate this requirement. The + * application must check them if it matters. + * * If the application uses `nghttp2_session_mem_recv()`, it can return * :enum:`NGHTTP2_ERR_PAUSE` to make `nghttp2_session_mem_recv()` * return without processing further input bytes. The memory pointed