Bug #1440
closedImproper ERROR code of expired urls when using mod_secdownload
Description
When using mod_secdownload and a valid generated url times out, lighttpd returns error code 408.
This says the client to 'try again later', which is what eg. firefox does, requesting the same expired url 4 times and then giving error to user.
The proper error code here would be 403 as described at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html .
-- Joe7
Updated by about 17 years ago
All you have to do is go into the src folder;
Edit file mod_secure_download.c
find the line 248 and replace
con->http_status = 408;
with
con->http_status = 403; // Changed by TLN 11.18.07
Fixed!
Updated by about 17 years ago
Sorry for the poor formatting, copying and pasting from PuTTy does that:
should be find line 248:
con->http_status = 408;
with
con->http_status = 403; // Changed by TLN 11.18.07
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to fixed
Fixed in r2111; we send now "410 - Gone".
Also available in: Atom