Skip to content

Commit

Permalink
http_server: initialize things differently to quiet clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Tikhonov committed Nov 7, 2019
1 parent 48b476e commit 79f2752
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,18 +654,18 @@ struct req_map

static struct req_map req_maps[] =
{
{ GET, "/", IOH_INDEX_HTML, "200", 0, },
{ GET, "/index.html", IOH_INDEX_HTML, "200", 0, },
{ POST, "/cgi-bin/md5sum.cgi", IOH_MD5SUM, "200", RM_WANTBODY, },
{ POST, "/cgi-bin/verify-headers.cgi", IOH_VER_HEAD, "200", RM_WANTBODY, },
{ GET, "^/([0-9][0-9]*)([KMG]?)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)&push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/file-([0-9][0-9]*)([KMG]?)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ GET, "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)&push=([^&]*)$", IOH_GEN_FILE, "200", RM_REGEX, },
{ .method = GET, .path = "/", .handler = IOH_INDEX_HTML, .status = "200", .flags = 0, },
{ .method = GET, .path = "/index.html", .handler = IOH_INDEX_HTML, .status = "200", .flags = 0, },
{ .method = POST, .path = "/cgi-bin/md5sum.cgi", .handler = IOH_MD5SUM, .status = "200", .flags = RM_WANTBODY, },
{ .method = POST, .path = "/cgi-bin/verify-headers.cgi", .handler = IOH_VER_HEAD, .status = "200", .flags = RM_WANTBODY, },
{ .method = GET, .path = "^/([0-9][0-9]*)([KMG]?)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)&push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/file-([0-9][0-9]*)([KMG]?)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
{ .method = GET, .path = "^/file-([0-9][0-9]*)([KMG]?)\\?push=([^&]*)&push=([^&]*)&push=([^&]*)$", .handler = IOH_GEN_FILE, .status = "200", .flags = RM_REGEX, },
};


Expand Down

0 comments on commit 79f2752

Please sign in to comment.