mirror of
https://github.com/django/daphne.git
synced 2025-02-07 04:00:33 +03:00
Add attribute check for #31 and remove version pin
This commit is contained in:
parent
c8883eea50
commit
0b37e80614
|
@ -110,9 +110,9 @@ class WebRequest(http.Request):
|
||||||
logger.debug("Connection %s did not get successful WS handshake.", self.reply_channel)
|
logger.debug("Connection %s did not get successful WS handshake.", self.reply_channel)
|
||||||
del self.factory.reply_protocols[self.reply_channel]
|
del self.factory.reply_protocols[self.reply_channel]
|
||||||
self.reply_channel = None
|
self.reply_channel = None
|
||||||
|
# Resume the producer so we keep getting data, if it's available as a method
|
||||||
# Resume the producer so we keep getting data
|
if hasattr(self.channel, "resumeProducing"):
|
||||||
self.channel.resumeProducing()
|
self.channel.resumeProducing()
|
||||||
|
|
||||||
# Boring old HTTP.
|
# Boring old HTTP.
|
||||||
else:
|
else:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -22,7 +22,7 @@ setup(
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'asgiref>=0.13',
|
'asgiref>=0.13',
|
||||||
'twisted>=15.5,<16.3',
|
'twisted>=16.0',
|
||||||
'autobahn>=0.12',
|
'autobahn>=0.12',
|
||||||
],
|
],
|
||||||
entry_points={'console_scripts': [
|
entry_points={'console_scripts': [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user