X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fsession-apps%2Fhttp_server.c;h=9ad1297b9019274873a9e5010459b5f98414025e;hb=898cd8f83d56ece9df9f02d54170a96f7cf6d500;hp=6a2e6cda1a2d4589630561d94113dbe32c8e129f;hpb=048a4e5a000017d0d632ebf02dcc23d9bf9ccf72;p=vpp.git diff --git a/src/vnet/session-apps/http_server.c b/src/vnet/session-apps/http_server.c index 6a2e6cda1a2..9ad1297b901 100644 --- a/src/vnet/session-apps/http_server.c +++ b/src/vnet/session-apps/http_server.c @@ -87,30 +87,37 @@ free_http_process (http_server_args * args) vec_add1 (hsm->free_http_cli_process_node_indices, node_index); } -static const char - *http_response = "HTTP/1.1 200 OK\r\n" - "Content-Type: text/html\r\n" - "Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n" - "Connection: close\r\n" - "Pragma: no-cache\r\n" "Content-Length: %d\r\n\r\n%s"; - -static const char - *http_error_template = "HTTP/1.1 %s\r\n" - "Content-Type: text/html\r\n" - "Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n" - "Connection: close\r\n" "Pragma: no-cache\r\n" "Content-Length: 0\r\n\r\n"; +/* *INDENT-OFF* */ +static const char *http_response = + "HTTP/1.1 200 OK\r\n" + "Content-Type: text/html\r\n" + "Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n" + "Connection: keep-alive \r\n" + "Pragma: no-cache\r\n" + "Content-Length: %d\r\n\r\n%s"; + +static const char *http_error_template = + "HTTP/1.1 %s\r\n" + "Content-Type: text/html\r\n" + "Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n" + "Connection: close\r\n" + "Pragma: no-cache\r\n" + "Content-Length: 0\r\n\r\n"; /* Header, including incantation to suppress favicon.ico requests */ -static const char - *html_header_template = "%v" - "
";
-
-static const char *html_footer = "
\r\n"; - -static const char - *html_header_static = "static reply" - "
hello
" - "\r\n"; +static const char *html_header_template = + "%v" + "" + "
";
+
+static const char *html_footer =
+    "
\r\n"; + +static const char *html_header_static = + "static reply" + "" + "
hello
\r\n"; +/* *INDENT-ON* */ static u8 *static_http;