Skip to content

Commit dcdb340

Browse files
committed
Show typical "Hello" message when requested
1 parent c6e64a2 commit dcdb340

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

http_server.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99

1010
#define CRLF "\r\n"
1111

12-
#define HTTP_RESPONSE_200_DUMMY \
13-
"" \
14-
"HTTP/1.1 200 OK" CRLF "Server: " KBUILD_MODNAME CRLF \
15-
"Content-Type: text/plain" CRLF "Content-Length: 8" CRLF \
16-
"Connection: Close" CRLF CRLF "200 OK" CRLF
17-
#define HTTP_RESPONSE_200_KEEPALIVE_DUMMY \
18-
"" \
19-
"HTTP/1.1 200 OK" CRLF "Server: " KBUILD_MODNAME CRLF \
20-
"Content-Type: text/plain" CRLF "Content-Length: 8" CRLF \
21-
"Connection: Keep-Alive" CRLF CRLF "200 OK" CRLF
12+
#define HTTP_RESPONSE_200_DUMMY \
13+
"" \
14+
"HTTP/1.1 200 OK" CRLF "Server: " KBUILD_MODNAME CRLF \
15+
"Content-Type: text/plain" CRLF "Content-Length: 12" CRLF \
16+
"Connection: Close" CRLF CRLF "Hello World!" CRLF
17+
#define HTTP_RESPONSE_200_KEEPALIVE_DUMMY \
18+
"" \
19+
"HTTP/1.1 200 OK" CRLF "Server: " KBUILD_MODNAME CRLF \
20+
"Content-Type: text/plain" CRLF "Content-Length: 12" CRLF \
21+
"Connection: Keep-Alive" CRLF CRLF "Hello World!" CRLF
2222
#define HTTP_RESPONSE_501 \
2323
"" \
2424
"HTTP/1.1 501 Not Implemented" CRLF "Server: " KBUILD_MODNAME CRLF \

0 commit comments

Comments
 (0)