keep alive test
fixing broken examples
Merge pull request #11 from fitstar/ex_fix

fixing broken examples
keep-alive fix for http 1.0
gofmt
fixing all my stupid errors
Merge pull request #12 from fitstar/http1ka

fixing keepalive for http 1.0
Set the socket back to nonblock
Merge pull request #13 from fitstar/socket_fix

Set the socket back to nonblock
Merge branch 'keep_alive'
test 1.0 and 1.1 keepalive cases.  includes failing test fixed by PR#14
Merge pull request #15 from dgrijalva/keepalive_test

Keepalive test
Fix keep-alive behavior

RFC 2616 section 8.1.1 states:

     HTTP implementations SHOULD implement persistent connections.

and section 14.10 defines the "close" connection option.

HTTP/1.0 does not use keep-alive unless the Connection
header is set to "Keep-Alive".
Fix keep-alive test

net/http only supports HTTP 1.1, so manually write the request.
Ignore test files
gofmt
Merge pull request #16 from titanous/gofmt

Gofmt
Merge pull request #14 from titanous/fix-keepalive

Fix keep-alive behavior
content length fix
test for content-length setting and fix for unset content lengths