aiohttp-tus
aiohttp-tus copied to clipboard
Fix parsing and validation of metadata
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.