Software /
code /
prosody
Comparison
plugins/mod_http_file_share.lua @ 13786:284b100acda1 13.0
mod_http_file_share: Explicitly reject all unsupported ranges
Fail fast. Otherwise it sends the whole file.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Mar 2025 12:36:47 +0100 |
parent | 13785:d7e54a2475cc |
child | 13854:0b01f40df0f9 |
comparison
equal
deleted
inserted
replaced
13785:d7e54a2475cc | 13786:284b100acda1 |
---|---|
440 filesize = string.format("%d", size-pos); | 440 filesize = string.format("%d", size-pos); |
441 else | 441 else |
442 handle:close(); | 442 handle:close(); |
443 return 416; | 443 return 416; |
444 end | 444 end |
445 else | |
446 handle:close(); | |
447 return 416; | |
445 end | 448 end |
446 end | 449 end |
447 | 450 |
448 | 451 |
449 if not filetype then | 452 if not filetype then |