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


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2086 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.19
Stefan Bühler 15 years ago
parent a103fef58c
commit a25cbfa36b
  1. 2
      src/connections.c

@ -394,7 +394,7 @@ static int connection_handle_write_prepare(server *srv, connection *con) {
* 403 is from the response handler when noone else catched it
*
* */
if (con->uri.path->used &&
if ((!con->http_status || con->http_status == 200) && con->uri.path->used &&
con->uri.path->ptr[0] != '*') {
response_header_insert(srv, con, CONST_STR_LEN("Allow"), CONST_STR_LEN("OPTIONS, GET, HEAD, POST"));

Loading…
Cancel
Save