From 232ad0a2ba6e68508b3b4929ea1df597d7b8c187 Mon Sep 17 00:00:00 2001 From: Nigel Brookes-Thomas Date: Wed, 25 Mar 2020 12:32:42 +0000 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd71c45..5879dd9 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ route do |r| end ``` -The proxy will always be invoked. Headers and body are passed through unmodified in both directions with the exception of `Host` which is rewritten to match the target. +The proxy will always be invoked. Headers and body are passed through unmodified in both directions with the exception of `Host` which is rewritten to match the target and `Via` which is created (or appended to if it already exists) to indicate the proxy path. Also provided is a conditional proxy: From b77cf2e3bc0019ebc71d347013ea9416023dd50c Mon Sep 17 00:00:00 2001 From: Nigel Brookes-Thomas Date: Wed, 25 Mar 2020 12:33:29 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5879dd9..31576a4 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ route do |r| end ``` -With `proxy_when` the first optional parameter expects a truthy value or a block / lambda that returns a truthy value. This must be equivalent to `true` for the proxying to occur. The optional probability is a float between 0 and 1 indicating the probability that proxying will happen. Both paramters can be used alone or in isolation. +With `proxy_when` the first optional parameter expects a truthy value or a block / lambda that returns a truthy value. This must be equivalent to `true` for the proxying to occur. The optional probability is a float between 0 and 1 indicating the probability that proxying will happen. Both parameters can be used alone or in isolation. If and only if proxying does not occur will the block be evaluated and return to Roda for rendering.