mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Ignore OPTIONS request when using proxyandrecord #498
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bhargavjulaganti on GitHub (Mar 7, 2023).
Originally assigned to: @StefH on GitHub.
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
@StefH commented on GitHub (Mar 8, 2023):
@bhargavjulaganti
This can be added.
I'll take a look.
@StefH commented on GitHub (Mar 8, 2023):
Can you try preview version (1.5.17-ci-17145) ?
https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
@bhargavjulaganti commented on GitHub (Mar 8, 2023):
I updated the version to
1.5.17-ci-17145and tried it. I am still seeing OPTIONS file is getting created@StefH commented on GitHub (Mar 8, 2023):
Please try 17147
@bhargavjulaganti commented on GitHub (Mar 8, 2023):
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
@StefH commented on GitHub (Mar 8, 2023):
You are correct.
Actually a new setting like DoNotSaveMappingForHttpMethods should be added. Just like SaveMappingForStatusCodePattern.
@StefH commented on GitHub (Mar 8, 2023):
@bhargavjulaganti
New code works like:
(new preview NuGet will be published within some minutes, just take the most recent version)
@bhargavjulaganti commented on GitHub (Mar 9, 2023):
That worked . Thanks for the quick update :)
@StefH commented on GitHub (Mar 9, 2023):
https://github.com/WireMock-Net/WireMock.Net/pull/900
@StefH commented on GitHub (Mar 9, 2023):
An official NuGet will be released in the next days.