Changeset 2086

Show
Ignore:
Timestamp:
02/26/2008 04:20:48 PM (3 months ago)
Author:
stbuehler
Message:

r2091@chromobil: stefan | 2008-02-26 17:06:03 +0100
Fix #1324: req-method OPTIONS: do not insert default response if request was denied


  • Request is handled as denied if status != 0 && status != 200
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/src/connections.c

    r2080 r2086  
    395395                         * 
    396396                         * */ 
    397                         if (con->uri.path->used && 
     397                        if ((!con->http_status || con->http_status == 200) && con->uri.path->used && 
    398398                            con->uri.path->ptr[0] != '*') { 
    399399                                response_header_insert(srv, con, CONST_STR_LEN("Allow"), CONST_STR_LEN("OPTIONS, GET, HEAD, POST"));