]> Cypherpunks repositories - gostls13.git/commit
net/http/httputil: make ReverseProxy return 502 Bad Gateway instead of 500
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 31 Mar 2016 11:03:57 +0000 (04:03 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 1 Apr 2016 00:47:45 +0000 (00:47 +0000)
commit1bf779a44a924650885111c6161c0c5a22968dbf
treeef428f6b2ceac86e6636988b8d4a15f1529d8780
parenta3537522d67a1cc01f0e533acb8384341e80f5e0
net/http/httputil: make ReverseProxy return 502 Bad Gateway instead of 500

... when the backend can't be reached.

Fixes #9864

Change-Id: I9e4814824943060e0101b6236d6dfd8d7822b4c7
Reviewed-on: https://go-review.googlesource.com/21363
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/httputil/reverseproxy.go
src/net/http/httputil/reverseproxy_test.go