Welcome! Log In Create A New Profile

Advanced

Re: Logging embedded Perl return value

All files from this thread

File Name File Size   Posted by Date  
patch.any_status 8.5 KB open | download Igor Sysoev 04/10/2009 Read message
July 07, 2009 05:59AM
Hi Igor,

Thanks for the patch! I just realized it's now in the stable 0.7.x release.

As a test, I tried adding a '207 response code by modifying the files below
and return 'HTTP_CUSTOM_RESPONSE' from the perl handler.

It didn't work so perhaps you could point me to where I'm going wrong?

diff -r orig/nginx-0.7.61/src/http/modules/perl/nginx.pm nginx-0.7.61/src/http/modules/perl/nginx.pm
18a19
> HTTP_CUSTOM_RESPONSE
63a65
> use constant HTTP_CUSTOM_RESPONSE => 207;


diff -r orig/nginx-0.7.61/src/http/ngx_http_header_filter_module.c nginx-0.7.61/src/http/ngx_http_header_filter_module.c
60a61
> ngx_string("207 Custom Response"),
64c65
< #define NGX_HTTP_LAST_LEVEL_200 207
---
> #define NGX_HTTP_LAST_LEVEL_200 208


diff -r orig/nginx-0.7.61/src/http/ngx_http_request.h nginx-0.7.61/src/http/ngx_http_request.h
68a69
> #define NGX_HTTP_CUSTOM_RESPONSE 207
Subject Author Posted

Logging embedded Perl return value

davidc April 08, 2009 11:41PM

Re: Logging embedded Perl return value

Igor Sysoev April 09, 2009 01:16AM

Re: Logging embedded Perl return value

davidc April 09, 2009 04:54AM

Re: Logging embedded Perl return value Attachments

Igor Sysoev April 10, 2009 06:33AM

Re: Logging embedded Perl return value

davidc July 07, 2009 05:59AM

Re: Logging embedded Perl return value

davidc July 07, 2009 11:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready