6 messages in ru.sysoev.nginxRe: Logging embedded Perl return value
FromSent OnAttachments
davidcApr 8, 2009 8:41 pm 
Igor SysoevApr 8, 2009 10:16 pm 
davidcApr 9, 2009 1:54 am 
Igor SysoevApr 10, 2009 3:33 am.Other
davidcJul 7, 2009 2:59 am 
davidcJul 7, 2009 8:26 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Logging embedded Perl return valueActions...
From:davidc (ngin@nginx.us)
Date:Jul 7, 2009 2:59:08 am
List:ru.sysoev.nginx

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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,933,3808#msg-3808