Update handlers.py

Fixes bug rendering images on Windows.
Always close the connection at the end of a request.

Since changing the HTTP version to 1.1, the connection would use
keepalive. This is fine in most cases, but some responses don't
know how long they are and so don't set Content-Length. This meant
that the associated request would time out. Closing the connection
fixes this issue. If we need keepalive e.g. to test browser behaviour
in this area then we can revisit this fix with something more
surgical.
fixup! Always close the connection at the end of a request.

Change to only closing the connection when we don't have a
Content-Length header.
fixup! Always close the connection at the end of a request.
Merge pull request #17 from w3c/jgraham/connection_close

Always close the connection at the end of a request.
Also close the connection for asis files.
Merge pull request #18 from w3c/jgraham/close_asis

Also close the connection for asis files.
Ensure that all of the request data is read from the socket when using a keepalive connection.
fixup! Ensure that all of the request data is read from the socket when using a keepalive connection.
Merge pull request #19 from w3c/jgraham/read_whole_request

Ensure that all of the request data is read from the socket when using a keepalive connection.
When using pipes assume input is utf8 rather than assuming ascii
Merge pull request #21 from w3c/jgraham/sub_encoding

When using pipes assume input is utf8 rather than assuming ascii
Merge pull request #6 from alfredodev/patch-1

Changed open mode in handlers.py
Adding gzip pipe (1st attempt)
gz pipe - don't overwrite the gzip import with function name, set length correctly
Addressing review comments, renaming filter to gzip
use cStringIO
Merge pull request #22 from hallvors/gzip-pipe

Adding gzip pipe feature
bugfix
Merge pull request #23 from hallvors/gzip-pipe

bugfix for gzip pipe