forked from indymedia/epicyon
Show upgrade protocols
parent
9ca20f92f2
commit
edc34a8a9a
|
@ -932,6 +932,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
else:
|
else:
|
||||||
if self.headers.get('Connection'):
|
if self.headers.get('Connection'):
|
||||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism
|
||||||
|
if self.headers.get('Upgrade'):
|
||||||
|
print('HTTP Connection request: '+self.headers['Upgrade'])
|
||||||
|
else:
|
||||||
print('HTTP Connection request: '+self.headers['Connection'])
|
print('HTTP Connection request: '+self.headers['Connection'])
|
||||||
self._200()
|
self._200()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue