annotate src/os/win32/nginx_icon48.xpm @ 4147:7f64de1cc2c0

Fix for double content when return is used in error_page handler. Test case: location / { error_page 405 /nope; return 405; } location /nope { return 200; } This is expected to return 405 with empty body, but in 0.8.42+ will return builtin 405 error page as well (though not counted in Content-Length, thus breaking protocol). Fix is to use status provided by rewrite script execution in case it's less than NGX_HTTP_BAD_REQUEST even if r->error_status set. This check is in line with one in ngx_http_script_return_code(). Note that this patch also changes behaviour for "return 302 ..." and "rewrite ... redirect" used as error handler. E.g. location / { error_page 405 /redirect; return 405; } location /redirect { rewrite ^ http://example.com/; } will actually return redirect to "http://example.com/" instead of builtin 405 error page with meaningless Location header. This looks like correct change and it's in line with what happens on e.g. directory redirects in error handlers.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Sep 2011 11:11:30 +0000
parents 37580bd13ca5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2734
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
1 /* XPM */
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
2 static char * nginx_xpm[] = {
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
3 "48 48 2 2",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
4 /* colors */
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
5 " c none",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
6 "GG c #009900",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
7 /* pixels */
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
8 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
9 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
10 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
11 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
12 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
13 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
14 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
15 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
16 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
17 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
18 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
19 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
20 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
21 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
22 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
23 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
24 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
25 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
26 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
27 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
28 " GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
29 " GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
30 " GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
31 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
32 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
33 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
34 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
35 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
36 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
37 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
38 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
39 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
40 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
41 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
42 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
43 " GGGGGGGGGGGGGGGG GGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
44 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
45 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
46 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
47 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
48 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
49 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
50 " GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
51 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
52 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
53 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
54 " ",
37580bd13ca5 add 48x48 icon
Igor Sysoev <igor@sysoev.ru>
parents:
diff changeset
55 " ",