Allow NGHTTP2_FLAG_END_SEGMENT in nghttp2_submit_headers()
Code cleanup