Add disaconf support.
[project/luci.git] / contrib / axtls / patches / 004-cgi-nph-mode.patch
1 --- axTLS/httpd/proc.c  2008-11-13 14:05:02.000000000 +0100
2 +++ axTLS.new/httpd/proc.c      2008-11-13 16:07:12.000000000 +0100
3 @@ -556,13 +556,13 @@
4      int tmp_stdout;
5  #endif
6  
7 -    snprintf(cgienv[0], MAXREQUESTLENGTH, 
8 +    if (cn->reqtype == TYPE_HEAD) 
9 +    {
10 +        snprintf(cgienv[0], MAXREQUESTLENGTH, 
11              HTTP_VERSION" 200 OK\nServer: %s\n%s",
12              server_version, (cn->reqtype == TYPE_HEAD) ? "\n" : "");
13 -    special_write(cn, cgienv[0], strlen(cgienv[0]));
14 +        special_write(cn, cgienv[0], strlen(cgienv[0]));
15  
16 -    if (cn->reqtype == TYPE_HEAD) 
17 -    {
18          removeconnection(cn);
19          return;
20      }