Skip to content

Commit 5aac4e9

Browse files
committed
Consistently refer to HTTP/2 as HTTP/2 (and not HTTP/2.0)
The spec was renamed away from HTTP/2.0 many years ago, and we should thus consistently call it HTTP/2. This leaves a single instance of HTTP/2.0: what we set as Request.protocol_version, as this is exposed to clients of wptserve.
1 parent b21d003 commit 5aac4e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/wptserve/wptserve/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ class Http2WebTestRequestHandler(BaseWebTestRequestHandler):
399399

400400
def handle_one_request(self):
401401
"""
402-
This is the main HTTP/2.0 Handler.
402+
This is the main HTTP/2 Handler.
403403
404404
When a browser opens a connection to the server
405-
on the HTTP/2.0 port, the server enters this which will initiate the h2 connection
405+
on the HTTP/2 port, the server enters this which will initiate the h2 connection
406406
and keep running throughout the duration of the interaction, and will read/write directly
407407
from the socket.
408408

tools/wptserve/wptserve/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ def get_port(host: str = '') -> int:
169169
return port
170170

171171
def http2_compatible() -> bool:
172-
# The HTTP/2.0 server requires OpenSSL 1.0.2+.
172+
# The HTTP/2 server requires OpenSSL 1.0.2+.
173173
#
174174
# For systems using other SSL libraries (e.g. LibreSSL), we assume they
175175
# have the necessary support.
176176
import ssl
177177
if not ssl.OPENSSL_VERSION.startswith("OpenSSL"):
178178
logger = get_logger()
179179
logger.warning(
180-
'Skipping HTTP/2.0 compatibility check as system is not using '
180+
'Skipping HTTP/2 compatibility check as system is not using '
181181
'OpenSSL (found: %s)' % ssl.OPENSSL_VERSION)
182182
return True
183183

0 commit comments

Comments
 (0)