mirror of
https://github.com/django/daphne.git
synced 2025-02-06 19:50:32 +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)
|
||||
del self.factory.reply_protocols[self.reply_channel]
|
||||
self.reply_channel = None
|
||||
|
||||
# Resume the producer so we keep getting data
|
||||
self.channel.resumeProducing()
|
||||
# Resume the producer so we keep getting data, if it's available as a method
|
||||
if hasattr(self.channel, "resumeProducing"):
|
||||
self.channel.resumeProducing()
|
||||
|
||||
# Boring old HTTP.
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user