Fix for Restricted Response headers (#169)

* WebHeaderCollection.IsRestricted (#148)

* Update dependencies

* 1.0.4.7
This commit is contained in:
Stef Heyenrath
2018-07-19 22:23:00 +02:00
committed by GitHub
parent 7191c082de
commit b2bf63b013
12 changed files with 186 additions and 7 deletions

View File

@@ -38,6 +38,25 @@ namespace WireMock.Net.ConsoleApplication
server.AllowPartialMapping();
server
.Given(Request.Create()
.UsingGet()
.WithPath("/proxy-test-keep-alive")
)
.RespondWith(Response.Create()
.WithHeader("Keep-Alive", "timeout=1, max=1")
);
server
.Given(Request.Create()
.UsingGet()
.WithPath("/proxy-execute-keep-alive")
)
.RespondWith(Response.Create()
.WithProxy(new ProxyAndRecordSettings { Url = "http://localhost:9999", BlackListedHeaders = new [] { "Keep-Alive" } })
.WithHeader("Keep-Alive-Test", "stef")
);
server
.Given(Request.Create()
.WithPath("/xpath").UsingPost()