mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-24 08:20:20 +00:00
Initialize frame header for upgrade SETTINGS frame
This commit is contained in:
parent
a2bc88f6db
commit
a8eeea0b18
@ -6067,7 +6067,8 @@ int nghttp2_session_upgrade(nghttp2_session *session,
|
||||
}
|
||||
|
||||
if(session->server) {
|
||||
memset(&frame.hd, 0, sizeof(frame.hd));
|
||||
nghttp2_frame_hd_init(&frame.hd, settings_payloadlen, NGHTTP2_SETTINGS,
|
||||
NGHTTP2_FLAG_NONE, 0);
|
||||
frame.settings.iv = iv;
|
||||
frame.settings.niv = niv;
|
||||
rv = nghttp2_session_on_settings_received(session, &frame, 1 /* No ACK */);
|
||||
|
Loading…
Reference in New Issue
Block a user