forked from openlp/openlp
Fix bug #1206886: only write to the socket if it exists
This commit is contained in:
parent
6d86abaa37
commit
232492b57e
@ -593,6 +593,9 @@ class HttpConnection(object):
|
||||
for header, value in response.headers.iteritems():
|
||||
http += '%s: %s\r\n' % (header, value)
|
||||
http += '\r\n'
|
||||
if self.socket:
|
||||
# Write to the socket if it's open, else ignore it.
|
||||
# See http://support.openlp.org/scp/tickets.php?id=2112
|
||||
self.socket.write(http)
|
||||
self.socket.write(response.content)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user