nghttpx: Remove NGHTTP2_HCAT_REQUEST halding since already handled in lib

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-15 23:16:24 +09:00
parent b11e1afc91
commit 84ead30e58
1 changed files with 0 additions and 6 deletions

View File

@ -737,12 +737,6 @@ namespace {
int on_begin_headers_callback(nghttp2_session *session,
const nghttp2_frame *frame, void *user_data) {
auto http2session = static_cast<Http2Session *>(user_data);
if (frame->headers.cat == NGHTTP2_HCAT_REQUEST) {
// server sends request HEADERS
http2session->submit_rst_stream(frame->hd.stream_id,
NGHTTP2_REFUSED_STREAM);
return 0;
}
if (frame->headers.cat != NGHTTP2_HCAT_RESPONSE) {
return 0;
}