mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 08:27:26 +02:00
httputil: ignore errors < 400 (#3781)
This commit is contained in:
parent
090601873f
commit
a5082f60e7
2 changed files with 9 additions and 6 deletions
|
@ -21,6 +21,7 @@ func TestHTTPError_ErrorResponse(t *testing.T) {
|
|||
}{
|
||||
{"404 json", http.StatusNotFound, errors.New("route not known"), "application/json", http.StatusNotFound, "{\"Status\":404}\n"},
|
||||
{"404 html", http.StatusNotFound, errors.New("route not known"), "", http.StatusNotFound, ""},
|
||||
{"302 found", http.StatusFound, errors.New("redirect"), "", http.StatusFound, ""},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue