comparison src/http/modules/perl/nginx.xs @ 178:87699398f955 NGINX_0_3_36

nginx 0.3.36 *) Feature: the ngx_http_addition_filter_module. *) Feature: the "proxy_pass" and "fastcgi_pass" directives may be used inside the "if" block. *) Feature: the "proxy_ignore_client_abort" and "fastcgi_ignore_client_abort" directives. *) Feature: the "$request_completion" variable. *) Feature: the ngx_http_perl_module supports the $r->request_method and $r->remote_addr. *) Feature: the ngx_http_ssi_module supports the "elif" command. *) Bugfix: the "\/" string in the expression of the "if" command of the ngx_http_ssi_module was treated incorrectly. *) Bugfix: in the regular expressions in the "if" command of the ngx_http_ssi_module. *) Bugfix: if the relative path was specified in the "client_body_temp_path", "proxy_temp_path", "fastcgi_temp_path", and "perl_modules" directives, then the directory was used relatively to a current path but not to a server prefix.
author Igor Sysoev <http://sysoev.ru>
date Wed, 05 Apr 2006 00:00:00 +0400
parents fef68f68bcfd
children 4cd3e70c4d60
comparison
equal deleted inserted replaced
177:4a3ddd758222 178:87699398f955
176 OUTPUT: 176 OUTPUT:
177 RETVAL 177 RETVAL
178 178
179 179
180 char * 180 char *
181 request_method(r)
182 nginx r
183
184 CODE:
185
186 RETVAL = ngx_palloc(r->pool, r->method_name.len + 1);
187 if (RETVAL == NULL) {
188 XSRETURN_UNDEF;
189 }
190
191 ngx_cpystrn((u_char *) RETVAL, r->method_name.data, r->method_name.len + 1);
192
193 OUTPUT:
194 RETVAL
195
196
197 char *
198 remote_addr(r)
199 nginx r
200
201 CODE:
202
203 RETVAL = (char *) r->connection->addr_text.data;
204
205 OUTPUT:
206 RETVAL
207
208
209 char *
181 header_in(r, key) 210 header_in(r, key)
182 nginx r 211 nginx r
183 SV *key 212 SV *key
184 213
185 PREINIT: 214 PREINIT: