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

Fix parsing and validation of metadata #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HeroicKatora
Copy link

Applies the specification more precisely: allow empty values, do not
remove leading spaces from values, if separator is more than a single
space, do not fail on additional value contents with more spaces.

This also fixes an Internal Server Error in the empty value case. It's
allowed for key to stand on its own without any space separator. The
code relied on split yielding exactly two items.

Applies the specification more precisely: allow empty values, do not
remove leading spaces from values, if separator is more than a single
space, do not fail on additional value contents with more spaces.

This also fixes an Internal Server Error in the empty value case. It's
allowed for key to stand on its own without any space separator. The
code relied on split yielding exactly two items.
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