Skip to content
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

use the found match pattern #468

Merged
merged 1 commit into from
Dec 1, 2019
Merged

use the found match pattern #468

merged 1 commit into from
Dec 1, 2019

Conversation

jcmoraisjr
Copy link
Owner

The string _nomatch was used everywhere as a fallback if some pattern isn't found in a map. This used to work nice provided that the source sample could be found.

There is however a special use case when the sni extension isn't provided and the domain has optional client cert: the response is 404 due to the fetch sample failed. This doesn't affect v0.8 because the failed sample is new in v0.9 - see concat().

This change removes the default value on map*() converters, so it can fail, won't create the target variable and -m found can be used instead.

The string `_nomatch` was used everywhere as a fallback if some pattern isn't found in a map. This used to work nice provided that the source sample could be found.

There is however a special use case when the sni extension isn't provided and the domain has optional client cert: the response is 404 due to the fetch sample failed. This doesn't affect v0.8 because the failed sample is new in v0.9 - see concat().

This change removes the default value on map*() converters, so it can fail, won't create the target variable and `-m found` can be used instead.
@jcmoraisjr jcmoraisjr merged commit 69051c5 into master Dec 1, 2019
@jcmoraisjr jcmoraisjr deleted the jm-m-found branch December 1, 2019 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant