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

Commit eeb0701

Browse files
committed
Return none instead of empty string.
1 parent 27f5381 commit eeb0701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyper/ssl_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def selected_npn_protocol(self):
147147
if isinstance(proto, bytes):
148148
return proto.decode('ascii')
149149

150-
return proto
150+
return proto if proto else None
151151

152152
def getpeercert(self):
153153
def resolve_alias(alias):

0 commit comments

Comments
 (0)