Ticket #1324: connections.patch

File connections.patch, 0.5 kB (added by HenrikHolst, 1 year ago)

patch for connections.c

  • connections.c

    old new  
    394394                         * 403 is from the response handler when noone else catched it 
    395395                         * 
    396396                         * */ 
     397 
     398                        /* If authorization is required we cannot send a 200 response! */ 
     399                        if (con->http_status == 401) 
     400                            break; 
     401 
    397402                        if (con->uri.path->used && 
    398403                            con->uri.path->ptr[0] != '*') { 
    399404                                response_header_insert(srv, con, CONST_STR_LEN("Allow"), CONST_STR_LEN("OPTIONS, GET, HEAD, POST"));