| 1 | Upstream-status: Partially integrated <https://github.com/sphinx-contrib/httpdomain/pull/110>
|
| 2 |
|
| 3 | TODO: Find a better fix than the HTTPIndex removal, and resubmit to upstream
|
| 4 | (probably in Sphinx).
|
| 5 |
|
| 6 | diff --git a/src/sphinxcontrib/httpdomain/__init__.py b/src/sphinxcontrib/httpdomain/__init__.py
|
| 7 | index 48bb580..2cf41d7 100644
|
| 8 | |
| 9 | |
| 10 | @@ -207,6 +207,7 @@ HTTP_STATUS_CODES = {
|
| 11 | 304: 'Not Modified',
|
| 12 | 305: 'Use Proxy',
|
| 13 | 307: 'Temporary Redirect',
|
| 14 | + 308: 'Permanent Redirect',
|
| 15 | 400: 'Bad Request',
|
| 16 | 401: 'Unauthorized',
|
| 17 | 402: 'Payment Required', # unused
|
| 18 | @@ -221,7 +222,7 @@ HTTP_STATUS_CODES = {
|
| 19 | 411: 'Length Required',
|
| 20 | 412: 'Precondition Failed',
|
| 21 | 413: 'Request Entity Too Large',
|
| 22 | - 414: 'Request URI Too Long',
|
| 23 | + 414: 'URI Too Long',
|
| 24 | 415: 'Unsupported Media Type',
|
| 25 | 416: 'Requested Range Not Satisfiable',
|
| 26 | 417: 'Expectation Failed',
|
| 27 | @@ -229,6 +230,7 @@ HTTP_STATUS_CODES = {
|
| 28 | 422: 'Unprocessable Entity',
|
| 29 | 423: 'Locked',
|
| 30 | 424: 'Failed Dependency',
|
| 31 | + 425: 'Too Early', # RFC 8470
|
| 32 | 426: 'Upgrade Required',
|
| 33 | 429: 'Too Many Requests',
|
| 34 | 449: 'Retry With', # proprietary MS extension
|
| 35 | @@ -651,7 +653,7 @@ class HTTPDomain(Domain):
|
| 36 | 'any': {}
|
| 37 | }
|
| 38 |
|
| 39 | - indices = [HTTPIndex]
|
| 40 | + indices = []
|
| 41 |
|
| 42 | @property
|
| 43 | def routes(self):
|