summaryrefslogtreecommitdiffhomepage
path: root/src/html-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/html-error.c')
-rw-r--r--src/html-error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html-error.c b/src/html-error.c
index b6dd29d..998a6ee 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -138,13 +138,14 @@ int send_http_headers (
const char *message, const char *extra)
{
const char headers[] =
- "HTTP/1.0 %d %s\r\n"
+ "HTTP/1.%u %d %s\r\n"
"Server: %s/%s\r\n"
"Content-Type: text/html\r\n"
"%s"
"Connection: close\r\n" "\r\n";
return (write_message (connptr->client_fd, headers,
+ connptr->protocol.major != 1 ? 0 : connptr->protocol.minor,
code, message, PACKAGE, VERSION,
extra));
}