You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ serve
INFO: Discovered configuration in `serve.json`
ERROR: The configuration you provided is wrong:
should match pattern "^[a-zA-Z0-9_!#$%&'*+.;/:, =^`|~-]+$"
{"pattern":"^[a-zA-Z0-9_!#$%&'*+.;/:, =^`|~-]+$"}
I eventually figured out it was complaining about the ? in my header value.
? is a perfectly valid value to find in headers. It is in fact required if you are using structured headers.
The text was updated successfully, but these errors were encountered:
shameless self-promotion alert: this feature is fixed in my @warren-bank/serve fork of serve
rather than updating the regex pattern to include missing characters, the regex pattern to validate string content in header key/value pairs is simply removed.
Using
serve
with the followingserve.json
:gives the following:
I eventually figured out it was complaining about the
?
in my header value.?
is a perfectly valid value to find in headers. It is in fact required if you are using structured headers.The text was updated successfully, but these errors were encountered: