From b14bc01bf20a5b9f250607ebf5705a579b18503b Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Tue, 10 Nov 2020 15:42:17 +0000 Subject: [PATCH] ProxyThisHttps (#538) --- examples/WireMock.Net.Console.Net452.Classic/MainApp.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs index 74aac829..870a46ca 100644 --- a/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs +++ b/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs @@ -250,6 +250,13 @@ namespace WireMock.Net.ConsoleApplication .WithProxy("http://www.google.com") ); + server + .Given(Request.Create().WithHeader("ProxyThisHttps", "true") + .UsingGet()) + .RespondWith(Response.Create() + .WithProxy("https://www.google.com") + ); + server .Given(Request.Create().WithPath("/bodyasbytes.png") .UsingGet())