Ignore:
Timestamp:
02/03/09 19:43:30 (3 years ago)
Author:
George Potapov <nephrite@…>
Branches:
master-v0.7, nginx-v0.7, nginx-v0.8, upstream_count_limit
Children:
8310b2
Parents:
e7b311
git-author:
George Potapov <nephrite@…> (02/03/09 19:43:30)
git-committer:
George Potapov <nephrite@…> (02/03/09 19:43:30)
Message:

vendor drop nginx 0.7.32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/src/http/modules/ngx_http_fastcgi_module.c

    re7b311 r2ac4f5  
    136136static ngx_int_t ngx_http_fastcgi_path_info_variable(ngx_http_request_t *r, 
    137137    ngx_http_variable_value_t *v, uintptr_t data); 
    138 static ngx_int_t ngx_http_fastcgi_split(ngx_http_request_t *r, 
    139     ngx_http_fastcgi_ctx_t *f, ngx_http_fastcgi_loc_conf_t *flcf); 
     138static ngx_http_fastcgi_ctx_t *ngx_http_fastcgi_split(ngx_http_request_t *r, 
     139    ngx_http_fastcgi_loc_conf_t *flcf); 
    140140 
    141141static char *ngx_http_fastcgi_pass(ngx_conf_t *cf, ngx_command_t *cmd, 
     
    21122112    ngx_http_fastcgi_loc_conf_t  *flcf; 
    21132113 
    2114     f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
    21152114    flcf = ngx_http_get_module_loc_conf(r, ngx_http_fastcgi_module); 
    21162115 
    2117     if (ngx_http_fastcgi_split(r, f, flcf) != NGX_OK) { 
     2116    f = ngx_http_fastcgi_split(r, flcf); 
     2117 
     2118    if (f == NULL) { 
    21182119        return NGX_ERROR; 
    21192120    } 
     
    21522153    ngx_http_fastcgi_loc_conf_t  *flcf; 
    21532154 
    2154     f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
    21552155    flcf = ngx_http_get_module_loc_conf(r, ngx_http_fastcgi_module); 
    21562156 
    2157     if (ngx_http_fastcgi_split(r, f, flcf) != NGX_OK) { 
     2157    f = ngx_http_fastcgi_split(r, flcf); 
     2158 
     2159    if (f == NULL) { 
    21582160        return NGX_ERROR; 
    21592161    } 
     
    21692171 
    21702172 
    2171 static ngx_int_t 
    2172 ngx_http_fastcgi_split(ngx_http_request_t *r, ngx_http_fastcgi_ctx_t *f, 
    2173     ngx_http_fastcgi_loc_conf_t *flcf) 
     2173static ngx_http_fastcgi_ctx_t * 
     2174ngx_http_fastcgi_split(ngx_http_request_t *r, ngx_http_fastcgi_loc_conf_t *flcf) 
    21742175{ 
     2176    ngx_http_fastcgi_ctx_t       *f; 
    21752177#if (NGX_PCRE) 
    2176     ngx_int_t  n; 
    2177     int        captures[(1 + 2) * 3]; 
     2178    ngx_int_t                     n; 
     2179    int                           captures[(1 + 2) * 3]; 
     2180 
     2181    f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
     2182 
     2183    if (f == NULL) { 
     2184        f = ngx_pcalloc(r->pool, sizeof(ngx_http_fastcgi_ctx_t)); 
     2185        if (f == NULL) { 
     2186            return NULL; 
     2187        } 
     2188 
     2189        ngx_http_set_ctx(r, f, ngx_http_fastcgi_module); 
     2190    } 
    21782191 
    21792192    if (f->script_name.len) { 
    2180         return NGX_OK; 
     2193        return f; 
    21812194    } 
    21822195 
    21832196    if (flcf->split_regex == NULL) { 
    21842197        f->script_name = r->uri; 
    2185         return NGX_OK; 
     2198        return f; 
    21862199    } 
    21872200 
     
    21902203    if (n == NGX_REGEX_NO_MATCHED) { 
    21912204        f->script_name = r->uri; 
    2192         return NGX_OK; 
     2205        return f; 
    21932206    } 
    21942207 
     
    21972210                      ngx_regex_exec_n " failed: %d on \"%V\" using \"%V\"", 
    21982211                      n, &r->uri, &flcf->split_name); 
    2199         return NGX_ERROR; 
     2212        return NULL; 
    22002213    } 
    22012214 
     
    22082221    f->path_info.data = r->uri.data + f->script_name.len; 
    22092222 
    2210     return NGX_OK; 
     2223    return f; 
    22112224 
    22122225#else 
    22132226 
     2227    f = ngx_http_get_module_ctx(r, ngx_http_fastcgi_module); 
     2228 
     2229    if (f == NULL) { 
     2230        f = ngx_pcalloc(r->pool, sizeof(ngx_http_fastcgi_ctx_t)); 
     2231        if (f == NULL) { 
     2232            return NULL; 
     2233        } 
     2234 
     2235        ngx_http_set_ctx(r, f, ngx_http_fastcgi_module); 
     2236    } 
     2237 
    22142238    f->script_name = r->uri; 
    22152239 
    2216     return NGX_OK; 
     2240    return f; 
    22172241 
    22182242#endif 
Note: See TracChangeset for help on using the changeset viewer.