mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 10:38:53 +08:00
Add flags parameter to nghttp2_on_header_callback
This commit is contained in:
@@ -295,6 +295,7 @@ static int on_header_callback(nghttp2_session *session,
|
||||
const nghttp2_frame *frame,
|
||||
const uint8_t *name, size_t namelen,
|
||||
const uint8_t *value, size_t valuelen,
|
||||
uint8_t flags,
|
||||
void *user_data)
|
||||
{
|
||||
my_user_data *ud = (my_user_data*)user_data;
|
||||
@@ -312,9 +313,10 @@ static int pause_on_header_callback(nghttp2_session *session,
|
||||
const nghttp2_frame *frame,
|
||||
const uint8_t *name, size_t namelen,
|
||||
const uint8_t *value, size_t valuelen,
|
||||
uint8_t flags,
|
||||
void *user_data)
|
||||
{
|
||||
on_header_callback(session, frame, name, namelen, value, valuelen,
|
||||
on_header_callback(session, frame, name, namelen, value, valuelen, flags,
|
||||
user_data);
|
||||
return NGHTTP2_ERR_PAUSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user