-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: the query string is repeated twice when enable http-to-https and append-query-string (#7394) #7433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: the query string is repeated twice when enable http-to-https and append-query-string (#7394) #7433
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -55,12 +55,14 @@ local schema = { | |||
}, | ||||
http_to_https = {type = "boolean"}, | ||||
encode_uri = {type = "boolean", default = false}, | ||||
append_query_string = {type = "boolean", default = false}, | ||||
append_query_string = {type = "boolean"}, | ||||
}, | ||||
oneOf = { | ||||
{required = {"uri"}}, | ||||
{required = {"regex_uri"}}, | ||||
{required = {"http_to_https"}} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 420 in ccfb000
We can use not operation to show the exclusive relationship?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have tried, but not succeed
and
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
what about this form? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give it a try:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It does work, i have updated, please check @spacewander |
||||
{required = {"http_to_https"}, ["not"] = { | ||||
required = {"append_query_string"} | ||||
}} | ||||
} | ||||
} | ||||
|
||||
|
Uh oh!
There was an error while loading. Please reload this page.