poetapp / frost-api

Po.et's API Layer
https://api.poetnetwork.net
MIT License
24 stars 5 forks source link

Size limit in POST /archives relies on header #962

Open lautarodragan opened 5 years ago

lautarodragan commented 5 years ago

And headers can lie. It's a good first measure, but we'll want to actually measure the bytes going through the stream and cut it abruptly if it surpasses the declared size in the header.

We can check against the header because the header has been checked against the configured limit previously.