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
What should be kasper behaviour when it receives an empty optional header, for example x-kasper-country?
I see two options:
Return an error, for example unknown country
Ignore such headers
Personally I opt for first more strict solution, but it can generate unexpected runtime errors. On the other hand ignoring them may cause confusion if empty header actually has a specific meaning.
In broader sense this question is about header validation - do we validate headers somehow, by checking for valid country code for example?
What should be kasper behaviour when it receives an empty optional header, for example x-kasper-country?
I see two options:
Personally I opt for first more strict solution, but it can generate unexpected runtime errors. On the other hand ignoring them may cause confusion if empty header actually has a specific meaning.
In broader sense this question is about header validation - do we validate headers somehow, by checking for valid country code for example?
Related issue: https://viadeo.atlassian.net/browse/KPLAT-225
The text was updated successfully, but these errors were encountered: