[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-cvs
Subject: svn commit: r1842007 - in /httpd/httpd/trunk: include/httpd.h modules/http/http_protocol.c
From: jorton () apache ! org
Date: 2018-09-26 9:01:19
Message-ID: 20180926090119.F22053A00A1 () svn01-us-west ! apache ! org
[Download RAW message or body]
Author: jorton
Date: Wed Sep 26 09:01:19 2018
New Revision: 1842007
URL: http://svn.apache.org/viewvc?rev=1842007&view=rev
Log:
* include/httpd.h: Define HTTP_TOO_EARLY (425) per RFC 8470.
* modules/http/http_protocol.c (status_lines,
get_canned_error_string): Add 425 response.
Modified:
httpd/httpd/trunk/include/httpd.h
httpd/httpd/trunk/modules/http/http_protocol.c
Modified: httpd/httpd/trunk/include/httpd.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/httpd.h?rev=1842007&r1=1842006&r2=1842007&view=diff
==============================================================================
--- httpd/httpd/trunk/include/httpd.h (original)
+++ httpd/httpd/trunk/include/httpd.h Wed Sep 26 09:01:19 2018
@@ -528,6 +528,7 @@ AP_DECLARE(const char *) ap_get_server_b
#define HTTP_UNPROCESSABLE_ENTITY 422
#define HTTP_LOCKED 423
#define HTTP_FAILED_DEPENDENCY 424
+#define HTTP_TOO_EARLY 425
#define HTTP_UPGRADE_REQUIRED 426
#define HTTP_PRECONDITION_REQUIRED 428
#define HTTP_TOO_MANY_REQUESTS 429
Modified: httpd/httpd/trunk/modules/http/http_protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_protocol.c?rev=1842007&r1=1842006&r2=1842007&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_protocol.c (original)
+++ httpd/httpd/trunk/modules/http/http_protocol.c Wed Sep 26 09:01:19 2018
@@ -139,7 +139,7 @@ static const char * const status_lines[R
"422 Unprocessable Entity",
"423 Locked",
"424 Failed Dependency",
- NULL, /* 425 */
+ "425 Too Early",
"426 Upgrade Required",
NULL, /* 427 */
"428 Precondition Required",
@@ -1109,6 +1109,9 @@ static const char *get_canned_error_stri
return("<p>The method could not be performed on the resource\n"
"because the requested action depended on another\n"
"action and that other action failed.</p>\n");
+ case HTTP_TOO_EARLY:
+ return("<p>The request could not be processed as TLS\n"
+ "early data and should be retried.</p>\n");
case HTTP_UPGRADE_REQUIRED:
return("<p>The requested resource can only be retrieved\n"
"using SSL. The server is willing to upgrade the current\n"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic