mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-14 12:54:00 +01:00
ProxyThisHttps (#538)
This commit is contained in:
1 parent
c104b8beba
commit
b14bc01bf2
1 file changed
+7
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user