Project

General

Profile

Actions

Bug #1440

closed

Improper ERROR code of expired urls when using mod_secdownload

Added by Anonymous about 17 years ago. Updated over 16 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_secdownload
Target version:
ASK QUESTIONS IN Forums:

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

Actions #1

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!

Actions #2

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

Actions #3

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".

Actions

Also available in: Atom