Disable closeNotify when method GET for http pipelining
This commit is contained in:
parent
f35d574759
commit
2387010556
7 changed files with 94 additions and 45 deletions
7
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
7
vendor/github.com/vulcand/oxy/buffer/buffer.go
generated
vendored
|
@ -349,9 +349,10 @@ func (b *bufferWriter) expectBody(r *http.Request) bool {
|
|||
if (b.code >= 100 && b.code < 200) || b.code == 204 || b.code == 304 {
|
||||
return false
|
||||
}
|
||||
if b.header.Get("Content-Length") == "" && b.header.Get("Transfer-Encoding") == "" {
|
||||
return false
|
||||
}
|
||||
// refer to https://github.com/vulcand/oxy/issues/113
|
||||
// if b.header.Get("Content-Length") == "" && b.header.Get("Transfer-Encoding") == "" {
|
||||
// return false
|
||||
// }
|
||||
if b.header.Get("Content-Length") == "0" {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue