diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-05-30 19:45:21 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-05-30 19:45:21 +0000 |
commit | cfa5e211adf2818d68a6b03e7f3258286919470d (patch) | |
tree | 97f68fd431a0e19ad9cd0f25aeba149dcc951869 /usr.sbin/relayd | |
parent | 8d030ee927bd8cdab1200634cc86753dd5d1c98c (diff) |
Safari doesn't like HTTP/1.x in the generated error messages (return error),
so change it to HTTP/1.0. This also makes it RFC-compliant which only allows
digits in the version number.
ok bluhm@
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r-- | usr.sbin/relayd/relay_http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay_http.c b/usr.sbin/relayd/relay_http.c index 00591eb62a5..143f12b869e 100644 --- a/usr.sbin/relayd/relay_http.c +++ b/usr.sbin/relayd/relay_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay_http.c,v 1.13 2013/05/07 16:19:58 reyk Exp $ */ +/* $OpenBSD: relay_http.c,v 1.14 2013/05/30 19:45:20 reyk Exp $ */ /* * Copyright (c) 2006 - 2012 Reyk Floeter <reyk@openbsd.org> @@ -849,7 +849,7 @@ relay_abort_http(struct rsession *con, u_int code, const char *msg, /* Generate simple HTTP+HTML error document */ if (asprintf(&httpmsg, - "HTTP/1.x %03d %s\r\n" + "HTTP/1.0 %03d %s\r\n" "Date: %s\r\n" "Server: %s\r\n" "Connection: close\r\n" |