Nil body retries
This commit is contained in:
parent
dbc796359f
commit
7f2582e3b6
3 changed files with 9 additions and 3 deletions
4
glide.lock
generated
4
glide.lock
generated
|
@ -1,4 +1,4 @@
|
||||||
hash: 9d176906cf25eaa3224c750b1dd3a5c8ce3340a58df3c562e57572c6294e16f0
|
hash: d87c01b4b8f802c81e1f3ae34a09c7001dc392654703b53fe0e6722041183abc
|
||||||
updated: 2017-09-30T18:32:16.848940186+02:00
|
updated: 2017-09-30T18:32:16.848940186+02:00
|
||||||
imports:
|
imports:
|
||||||
- name: cloud.google.com/go
|
- name: cloud.google.com/go
|
||||||
|
@ -481,7 +481,7 @@ imports:
|
||||||
- name: github.com/urfave/negroni
|
- name: github.com/urfave/negroni
|
||||||
version: 490e6a555d47ca891a89a150d0c1ef3922dfffe9
|
version: 490e6a555d47ca891a89a150d0c1ef3922dfffe9
|
||||||
- name: github.com/vulcand/oxy
|
- name: github.com/vulcand/oxy
|
||||||
version: 648088ee0902cf8d8337826ae2a82444008720e2
|
version: c024a22700b56debed9a9c8dbb297210a7ece02d
|
||||||
repo: https://github.com/containous/oxy.git
|
repo: https://github.com/containous/oxy.git
|
||||||
vcs: git
|
vcs: git
|
||||||
subpackages:
|
subpackages:
|
||||||
|
|
|
@ -12,7 +12,7 @@ import:
|
||||||
- package: github.com/cenk/backoff
|
- package: github.com/cenk/backoff
|
||||||
- package: github.com/containous/flaeg
|
- package: github.com/containous/flaeg
|
||||||
- package: github.com/vulcand/oxy
|
- package: github.com/vulcand/oxy
|
||||||
version: 648088ee0902cf8d8337826ae2a82444008720e2
|
version: c024a22700b56debed9a9c8dbb297210a7ece02d
|
||||||
repo: https://github.com/containous/oxy.git
|
repo: https://github.com/containous/oxy.git
|
||||||
vcs: git
|
vcs: git
|
||||||
subpackages:
|
subpackages:
|
||||||
|
|
6
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
6
vendor/github.com/vulcand/oxy/forward/fwd.go
generated
vendored
|
@ -249,6 +249,12 @@ func (f *httpForwarder) copyRequest(req *http.Request, u *url.URL) *http.Request
|
||||||
if f.rewriter != nil {
|
if f.rewriter != nil {
|
||||||
f.rewriter.Rewrite(outReq)
|
f.rewriter.Rewrite(outReq)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if req.ContentLength == 0 {
|
||||||
|
// https://github.com/golang/go/issues/16036: nil Body for http.Transport retries
|
||||||
|
outReq.Body = nil
|
||||||
|
}
|
||||||
|
|
||||||
return outReq
|
return outReq
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue