Mercurial > prosody-hg
comparison plugins/mod_http_file_share.lua @ 13478:fe7557cf31a6
mod_http_file_share: Fix expiry disabled check for new config API
Similar to 26c30844cac6
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 08 Apr 2024 16:44:11 +0200 |
| parents | 11e66ad894f0 |
| children | 7f05254fb042 |
comparison
equal
deleted
inserted
replaced
| 13477:e8ac3ce3238e | 13478:fe7557cf31a6 |
|---|---|
| 450 response.headers.x_xss_protection = "1; mode=block"; | 450 response.headers.x_xss_protection = "1; mode=block"; |
| 451 | 451 |
| 452 return response:send_file(handle); | 452 return response:send_file(handle); |
| 453 end | 453 end |
| 454 | 454 |
| 455 if expiry >= 0 and not external_base_url then | 455 if expiry < math.huge and not external_base_url then |
| 456 -- TODO HTTP DELETE to the external endpoint? | 456 -- TODO HTTP DELETE to the external endpoint? |
| 457 local array = require "prosody.util.array"; | 457 local array = require "prosody.util.array"; |
| 458 local async = require "prosody.util.async"; | 458 local async = require "prosody.util.async"; |
| 459 local ENOENT = require "prosody.util.pposix".ENOENT; | 459 local ENOENT = require "prosody.util.pposix".ENOENT; |
| 460 | 460 |
