Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 62df1c0

Browse files
committed
Highest priority is first.
1 parent 1da4cb0 commit 62df1c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hyper/ssl_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def cb(conn, protos):
323323
overlap = set(protos) & set(self.protocols)
324324

325325
# Select the option that comes last in the list in the overlap.
326-
for p in self.protocols[::-1]:
326+
for p in self.protocols:
327327
if p in overlap:
328328
return p
329329
else:

hyper/tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
NPN_PROTOCOL = 'h2'
1414
H2_NPN_PROTOCOLS = [NPN_PROTOCOL, 'h2-16,' 'h2-15', 'h2-14'] # All h2s we support.
15-
SUPPORTED_NPN_PROTOCOLS = ['http/1.1'] + H2_NPN_PROTOCOLS
15+
SUPPORTED_NPN_PROTOCOLS = H2_NPN_PROTOCOLS + ['http/1.1']
1616

1717

1818
# We have a singleton SSLContext object. There's no reason to be creating one

0 commit comments

Comments
 (0)