summaryrefslogtreecommitdiff
path: root/tests/plugins/headers
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-11 11:45:24 +0300
committerValery Piashchynski <[email protected]>2021-08-11 11:45:24 +0300
commit3e2e9fbd9650c44d57a41a9dc702fe93aad2b77f (patch)
tree38f25c3c0679e8510b896d001d1b7dccf21c4bd8 /tests/plugins/headers
parentd449d9d5aec1eec6d494064299feb1551f88ffe2 (diff)
Replace all 'localhost' with '127.0.0.1'. Fix default configuration and
other small bugs. Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/headers')
-rw-r--r--tests/plugins/headers/headers_plugin_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/headers/headers_plugin_test.go b/tests/plugins/headers/headers_plugin_test.go
index 49d86b00..a03a3c34 100644
--- a/tests/plugins/headers/headers_plugin_test.go
+++ b/tests/plugins/headers/headers_plugin_test.go
@@ -154,7 +154,7 @@ func TestRequestHeaders(t *testing.T) {
}
func reqHeaders(t *testing.T) {
- req, err := http.NewRequest("GET", "http://localhost:22655?hello=value", nil)
+ req, err := http.NewRequest("GET", "http://127.0.0.1:22655?hello=value", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)
@@ -239,7 +239,7 @@ func TestResponseHeaders(t *testing.T) {
}
func resHeaders(t *testing.T) {
- req, err := http.NewRequest("GET", "http://localhost:22455?hello=value", nil)
+ req, err := http.NewRequest("GET", "http://127.0.0.1:22455?hello=value", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)
@@ -326,7 +326,7 @@ func TestCORSHeaders(t *testing.T) {
}
func corsHeadersPass(t *testing.T) {
- req, err := http.NewRequest("GET", "http://localhost:22855", nil)
+ req, err := http.NewRequest("GET", "http://127.0.0.1:22855", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)
@@ -346,7 +346,7 @@ func corsHeadersPass(t *testing.T) {
}
func corsHeaders(t *testing.T) {
- req, err := http.NewRequest("OPTIONS", "http://localhost:22855", nil)
+ req, err := http.NewRequest("OPTIONS", "http://127.0.0.1:22855", nil)
assert.NoError(t, err)
r, err := http.DefaultClient.Do(req)