-
-
Notifications
You must be signed in to change notification settings - Fork 980
docs: update obsolete RFC references to current RFCs #2605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
5d7e59b
61b73cc
85b5a00
e9f6b45
0d39d74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,8 @@ def _header_property(header_name: str) -> Any: | |
| def fget(self: Request) -> str | None: | ||
| try: | ||
| # NOTE(vytas): Supporting ISO-8859-1 for historical reasons as per | ||
| # RFC 7230, Section 3.2.4; and to strive for maximum | ||
| # RFC 9110, Section 5.3 (see also RFC 9112, Section 2.1); | ||
|
||
| # and to strive for maximum | ||
| # compatibility with WSGI. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You could probably condense the two last lines into one comment line. |
||
| return self._asgi_headers[header_bytes].decode('latin1') or None | ||
| except KeyError: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1096,7 +1096,7 @@ def add_link(self) -> NoReturn: | |
| case, raising ``falcon.HTTPRangeNotSatisfiable`` will do the right | ||
| thing. | ||
|
|
||
| (See also: RFC 7233, Section 4.2) | ||
| (See also: RFC 9110, Section 14.4) | ||
| """, | ||
| _format_range, | ||
| ) | ||
|
|
@@ -1114,7 +1114,7 @@ def add_link(self) -> NoReturn: | |
| case, raising ``falcon.HTTPRangeNotSatisfiable`` will do the right | ||
| thing. | ||
|
|
||
| (See also: RFC 7233, Section 4.2) | ||
| (See also: RFC 9110, Section 14.4) | ||
| """ | ||
|
|
||
| content_type: str | None = _header_property( | ||
|
|
@@ -1290,7 +1290,7 @@ def add_link(self) -> NoReturn: | |
| value consists of either a single asterisk ("*") or a list of | ||
| header field names (case-insensitive). | ||
|
|
||
| (See also: RFC 7231, Section 7.1.4) | ||
| (See also: RFC 9110, Section 10.2.1) | ||
|
||
| """, | ||
| _format_header_value_list, | ||
| ) | ||
|
|
@@ -1307,7 +1307,7 @@ def add_link(self) -> NoReturn: | |
| value consists of either a single asterisk ("*") or a list of | ||
| header field names (case-insensitive). | ||
|
|
||
| (See also: RFC 7231, Section 7.1.4) | ||
| (See also: RFC 9110, Section 10.2.1) | ||
| """ | ||
|
|
||
| accept_ranges: str | None = _header_property( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is 5.3 relevant here? It should probably be RFC 9110, 5.5?