mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
clang-format-5.0
This commit is contained in:
@@ -267,8 +267,10 @@ static void run_nghttp2_session_recv(void) {
|
||||
nghttp2_frame frame;
|
||||
nghttp2_bufs bufs;
|
||||
nghttp2_nv nv[] = {
|
||||
MAKE_NV(":method", "GET"), MAKE_NV(":scheme", "https"),
|
||||
MAKE_NV(":authority", "example.org"), MAKE_NV(":path", "/"),
|
||||
MAKE_NV(":method", "GET"),
|
||||
MAKE_NV(":scheme", "https"),
|
||||
MAKE_NV(":authority", "example.org"),
|
||||
MAKE_NV(":path", "/"),
|
||||
};
|
||||
nghttp2_settings_entry iv[2];
|
||||
my_user_data ud;
|
||||
|
||||
@@ -81,8 +81,10 @@ typedef struct {
|
||||
} my_user_data;
|
||||
|
||||
static const nghttp2_nv reqnv[] = {
|
||||
MAKE_NV(":method", "GET"), MAKE_NV(":path", "/"),
|
||||
MAKE_NV(":scheme", "https"), MAKE_NV(":authority", "localhost"),
|
||||
MAKE_NV(":method", "GET"),
|
||||
MAKE_NV(":path", "/"),
|
||||
MAKE_NV(":scheme", "https"),
|
||||
MAKE_NV(":authority", "localhost"),
|
||||
};
|
||||
|
||||
static const nghttp2_nv resnv[] = {
|
||||
@@ -5876,9 +5878,8 @@ void test_nghttp2_submit_altsvc(void) {
|
||||
|
||||
len = nghttp2_session_mem_send(session, &data);
|
||||
|
||||
CU_ASSERT(len ==
|
||||
NGHTTP2_FRAME_HDLEN + 2 + sizeof(origin) - 1 + sizeof(field_value) -
|
||||
1);
|
||||
CU_ASSERT(len == NGHTTP2_FRAME_HDLEN + 2 + sizeof(origin) - 1 +
|
||||
sizeof(field_value) - 1);
|
||||
|
||||
nghttp2_frame_unpack_frame_hd(&hd, data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user