mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_http_file_share: Explicitly reject all unsupported ranges
Fail fast. Otherwise it sends the whole file.
This commit is contained in:
parent
afd99708d6
commit
faed304d55
1 changed files with 3 additions and 0 deletions
|
@ -442,6 +442,9 @@ function handle_download(event, path) -- GET /uploads/:slot+filename
|
|||
handle:close();
|
||||
return 416;
|
||||
end
|
||||
else
|
||||
handle:close();
|
||||
return 416;
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue