PEP 3333: Fix a TypeError in the example CGI Driver code (#3497)
This commit is contained in:
parent
7e39ae246b
commit
5a230ee5c9
|
@ -348,7 +348,7 @@ server.
|
||||||
if data: # don't send headers until body appears
|
if data: # don't send headers until body appears
|
||||||
write(data)
|
write(data)
|
||||||
if not headers_sent:
|
if not headers_sent:
|
||||||
write('') # send headers now if body was empty
|
write(b'') # send headers now if body was empty
|
||||||
finally:
|
finally:
|
||||||
if hasattr(result, 'close'):
|
if hasattr(result, 'close'):
|
||||||
result.close()
|
result.close()
|
||||||
|
|
Loading…
Reference in New Issue