-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
Add support for proxy method and body #170
Add support for proxy method and body #170
Conversation
Signed-off-by: Dominik Richter <[email protected]>
Signed-off-by: Dominik Richter <[email protected]>
Rebased on latest master, since Travis is working again. |
@@ -8,6 +8,12 @@ | |||
<% end -%> | |||
proxy_pass <%= @proxy %>; | |||
proxy_read_timeout <%= @proxy_read_timeout %>; | |||
<% if not @proxy_method.nil? -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use if @proxy_method
(same for @proxy_set_body
)
kudos to Matthew Haughton for this suggestion Signed-off-by: Dominik Richter <[email protected]>
@3flex Thank you! I updated the PR |
Could you also try adding tests for this new functionality? Have a look in |
Signed-off-by: Dominik Richter <[email protected]>
@3flex I added specs for both items, thanks again! |
Awesome! Thanks for this! |
…d_body Add support for proxy method and body
…method_and_body Add support for proxy method and body
Add support for setting proxy method and proxy body.
We found this useful when using nginx to rewrite our requests.
Usage example:
I wasn't sure if and where to add method-specific tests for this ;)
(fyi: The comment in
manifests/resource/location.pp
looks a bit out of place, but it's because the others aren't aligned correctly. I'll add a separate MR after this to fix them.)