-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Ignore OPTIONS request when using proxyandrecord #899
Comments
@bhargavjulaganti I'll take a look. |
Can you try preview version (1.5.17-ci-17145) ? https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
Please try 17147 |
still seeing the same issue. When I look at your change , I see you are looking for request matchers. I do not have any request matchers in my code. I am just running wiremock as a standalone application |
You are correct. Actually a new setting like DoNotSaveMappingForHttpMethods should be added. Just like SaveMappingForStatusCodePattern. |
@bhargavjulaganti ProxyAndRecordSettings = new ProxyAndRecordSettings
{
Url = "http://www.google.com",
SaveMapping = true,
SaveMappingToFile = true,
SaveMappingSettings = new ProxySaveMappingSettings
{
StatusCodePattern = "2xx,4xx",
HttpMethods = new ProxySaveMappingSetting<string[]>(new string[] { "GET" }, MatchBehaviour.RejectOnMatch) // To make sure that we don't want this mapping
}
}, (new preview NuGet will be published within some minutes, just take the most recent version) |
An official NuGet will be released in the next days. |
I am using wire mock as a standalone server, to record my web requests. Currently it is recording OPTIONS request as well when saving the mapping to the file .
Is there an extension I could use, so it does not save OPTIONS request, like how we are excluding specific headers not to save in mappings file
The text was updated successfully, but these errors were encountered: