Better handling of HTTP redirects.
authorBrian Brazil <brian.brazil@robustperception.io>
Fri, 27 Sep 2019 12:44:49 +0000 (13:44 +0100)
committerBrian Brazil <brian.brazil@robustperception.io>
Fri, 11 Oct 2019 13:07:54 +0000 (14:07 +0100)
commitc5f7df66da1035e7be498229214c41dc2a0237fb
treeca8f1427ec3fc88973117192d6fc0aa0bc73db8f
parente745ebb3eca8995db038996df86837e2889e50f1
Better handling of HTTP redirects.

If the redirect is to a different host, don't set ServerName.
Fixes #237.

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
prober/http.go
prober/http_test.go