Permalink
Browse files

oops

  • Loading branch information...
1 parent 487513e commit b6e88eb4b508d40ce5c569de19e0e7b4e975af54 @dgrijalva dgrijalva committed Aug 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 server.go
View
@@ -242,8 +242,8 @@ func (srv *Server) handler(c net.Conn) {
if res.ContentLength == 0 && len(res.TransferEncoding) == 0 && !((res.StatusCode-100 < 100) || res.StatusCode == 204 || res.StatusCode == 304) {
res.TransferEncoding = []string{"identity"}
}
- if t.ContentLength < 0 {
- t.TransferEncoding = []string{"chunked"}
+ if res.ContentLength < 0 {
+ res.TransferEncoding = []string{"chunked"}
}
// write response

0 comments on commit b6e88eb

Please sign in to comment.