PEP 3333: Fix a TypeError in the example CGI Driver code (#3497)

This commit is contained in:
amak 2023-10-23 20:28:26 +01:00 committed by GitHub
parent 7e39ae246b
commit 5a230ee5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ server.
if data: # don't send headers until body appears
write(data)
if not headers_sent:
write('') # send headers now if body was empty
write(b'') # send headers now if body was empty
finally:
if hasattr(result, 'close'):
result.close()