summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-02-24 08:57:19 +0100
committerReyk Floeter <reyk@esdenera.com>2015-02-24 08:57:19 +0100
commitbe1b7213b8e8d0de98b5a6445504a583e8c9a064 (patch)
treeb7360e53b785340929ce2e4722703fd97c121f26 /http.h
parent8a2934048ba934e50ecc1736d554036fc39f6752 (diff)
downloadhttpd-d6e585891809ed1d1ab5610be5d4afe50c649fef.tar.gz
httpd-d6e585891809ed1d1ab5610be5d4afe50c649fef.zip
Allow to specify CGI variables as macros in redirection strings, eg.OPENBSD_5_7_BASE
block return 301 "http://www.example.com/$REQUEST_URI" OK tedu@ florian@ Add return_uri to serverconfig_reset() to avoid using garbage from the imsg buffer. Debugging & OK halex@ Change TLS_PROTOCOLS_DEFAULT to be TLSv1.2 only. Add a TLS_PROTOCOLS_ALL that includes all currently supported protocols (TLSv1.0, TLSv1.1 and TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they maintain existing behaviour. Discussed with tedu@ and reyk@.
Diffstat (limited to 'http.h')
-rw-r--r--http.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/http.h b/http.h
index 59d1c10..00cf235 100644
--- a/http.h
+++ b/http.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: http.h,v 1.11 2015/01/13 09:21:15 reyk Exp $ */
+/* $OpenBSD: http.h,v 1.12 2015/02/11 12:52:01 florian Exp $ */
/*
* Copyright (c) 2012 - 2015 Reyk Floeter <reyk@openbsd.org>
@@ -172,7 +172,8 @@ struct http_error {
{ 415, "Unsupported Media Type" }, \
{ 416, "Range Not Satisfiable" }, \
{ 417, "Expectation Failed" }, \
- /* 418-421 unassigned */ \
+ { 418, "I'm a teapot" }, \
+ /* 419-421 unassigned */ \
{ 420, "Enhance Your Calm" }, \
{ 422, "Unprocessable Entity" }, \
{ 423, "Locked" }, \
@@ -184,7 +185,9 @@ struct http_error {
{ 429, "Too Many Requests" }, \
/* 430 unassigned */ \
{ 431, "Request Header Fields Too Large" }, \
- /* 432-499 unassigned */ \
+ /* 432-450 unassigned */ \
+ { 451, "Unavailable For Legal Reasons" }, \
+ /* 452-499 unassigned */ \
{ 500, "Internal Server Error" }, \
{ 501, "Not Implemented" }, \
{ 502, "Bad Gateway" }, \