B"H net_io.c: revert previous change and advertise HTTP 1.1
It seems server code should be compatible with HTTP 1.1; the features unique to 1.1 mostly are upon the client to support, and some headers used (for example Cache-Control) may need 1.1.
This commit is contained in:
parent
0317c48aac
commit
84fa09c228
2
net_io.c
2
net_io.c
|
@ -787,7 +787,7 @@ int handleHTTPRequest(struct client *c, char *p) {
|
||||||
|
|
||||||
// Create the header and send the reply
|
// Create the header and send the reply
|
||||||
hdrlen = snprintf(hdr, sizeof(hdr),
|
hdrlen = snprintf(hdr, sizeof(hdr),
|
||||||
"HTTP/1.0 200 OK\r\n"
|
"HTTP/1.1 200 OK\r\n"
|
||||||
"Server: Dump1090\r\n"
|
"Server: Dump1090\r\n"
|
||||||
"Content-Type: %s\r\n"
|
"Content-Type: %s\r\n"
|
||||||
"Connection: %s\r\n"
|
"Connection: %s\r\n"
|
||||||
|
|
Loading…
Reference in a new issue