Fix travis gcc build
This commit is contained in:
parent
6958d0b55d
commit
af4c3cb2cf
|
@ -9250,7 +9250,7 @@ void test_nghttp2_http_push_promise(void) {
|
||||||
void test_nghttp2_http_head_method_upgrade_workaround(void) {
|
void test_nghttp2_http_head_method_upgrade_workaround(void) {
|
||||||
nghttp2_session *session;
|
nghttp2_session *session;
|
||||||
nghttp2_session_callbacks callbacks;
|
nghttp2_session_callbacks callbacks;
|
||||||
const nghttp2_nv resnv[] = {MAKE_NV(":status", "200"),
|
const nghttp2_nv cl_resnv[] = {MAKE_NV(":status", "200"),
|
||||||
MAKE_NV("content-length", "1000000007")};
|
MAKE_NV("content-length", "1000000007")};
|
||||||
nghttp2_bufs bufs;
|
nghttp2_bufs bufs;
|
||||||
nghttp2_hd_deflater deflater;
|
nghttp2_hd_deflater deflater;
|
||||||
|
@ -9270,8 +9270,8 @@ void test_nghttp2_http_head_method_upgrade_workaround(void) {
|
||||||
|
|
||||||
nghttp2_session_upgrade(session, NULL, 0, NULL);
|
nghttp2_session_upgrade(session, NULL, 0, NULL);
|
||||||
|
|
||||||
rv = pack_headers(&bufs, &deflater, 1, NGHTTP2_FLAG_END_HEADERS, resnv,
|
rv = pack_headers(&bufs, &deflater, 1, NGHTTP2_FLAG_END_HEADERS, cl_resnv,
|
||||||
ARRLEN(resnv), mem);
|
ARRLEN(cl_resnv), mem);
|
||||||
|
|
||||||
CU_ASSERT(0 == rv);
|
CU_ASSERT(0 == rv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue