mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 01:47:33 +02:00
lua: fix rewrite response headers to handle dashes in URLs (#3980)
* lua: fix rewrite response headers to handle dashes in URLs * fix test
This commit is contained in:
parent
f2a5bda162
commit
513519e4be
3 changed files with 7 additions and 4 deletions
|
@ -54,13 +54,13 @@ func TestLuaRewriteHeaders(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
|
||||
headers := map[string]string{
|
||||
"Location": "https://localhost:8080/two/some/uri/",
|
||||
"Location": "https://domain-with-dashes:8080/two/some/uri/",
|
||||
}
|
||||
metadata := map[string]interface{}{
|
||||
"rewrite_response_headers": []interface{}{
|
||||
map[string]interface{}{
|
||||
"header": "Location",
|
||||
"prefix": "https://localhost:8080/two/",
|
||||
"prefix": "https://domain-with-dashes:8080/two/",
|
||||
"value": "https://frontend/one/",
|
||||
},
|
||||
map[string]interface{}{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue