Commit 95a87c8
committed
fix redirect test
The http.Client got smarter. The http client only removes the
Authorization header if the base domain is different. When we start
these two local http test servers, they both have the same "base
domain", which is `127.0.0.1`, so the http client never strips the
Authorization header. To work around this I changed the external server
URL to be `localhost`.
So setup looked like this:
http://127.0.0.1:4455 -> redirect to http://127.0.0.1:5566
Now the redirect looks like this:
http://127.0.0.1:4455 -> redirect to http://localhost:5566
Signed-off-by: Taylor Silva <dev@taydev.net>1 parent 86db1c5 commit 95a87c8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
652 | 656 | | |
653 | | - | |
| 657 | + | |
654 | 658 | | |
655 | 659 | | |
656 | 660 | | |
| |||
0 commit comments