* luci/contrib: let operate axhttpd in nph mode

This commit is contained in:
Jo-Philipp Wich 2008-11-13 15:18:32 +00:00
parent 2efe49d758
commit b7a720111d
2 changed files with 21 additions and 1 deletions

View file

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=axtls
PKG_VERSION:=1.2.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_BUILD_DIR=$(BUILD_DIR)/axTLS
PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz

View file

@ -0,0 +1,20 @@
--- axTLS/httpd/proc.c 2008-11-13 14:05:02.000000000 +0100
+++ axTLS.new/httpd/proc.c 2008-11-13 16:07:12.000000000 +0100
@@ -556,13 +556,13 @@
int tmp_stdout;
#endif
- snprintf(cgienv[0], MAXREQUESTLENGTH,
+ if (cn->reqtype == TYPE_HEAD)
+ {
+ snprintf(cgienv[0], MAXREQUESTLENGTH,
HTTP_VERSION" 200 OK\nServer: %s\n%s",
server_version, (cn->reqtype == TYPE_HEAD) ? "\n" : "");
- special_write(cn, cgienv[0], strlen(cgienv[0]));
+ special_write(cn, cgienv[0], strlen(cgienv[0]));
- if (cn->reqtype == TYPE_HEAD)
- {
removeconnection(cn);
return;
}