aiohttp-tus icon indicating copy to clipboard operation
aiohttp-tus copied to clipboard

Fix parsing and validation of metadata

Open 197g opened this issue 3 years ago • 0 comments

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.

197g avatar Mar 02 '22 10:03 197g