summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-03-02 23:31:40 +0000
committerJan Kneschke <jan@kneschke.de>2006-03-02 23:31:40 +0000
commit6d07240657d65c683390083a59910619fe1844e0 (patch)
tree140b6015253bac1a4a02d399308204e7f2464b47
parent41a99557de556e1a932d609caec8ad193b3e8d13 (diff)
downloadlighttpd-git-6d07240657d65c683390083a59910619fe1844e0.tar.gz
allow proxy to svn-apache do a commit
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1015 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/connections.c1
-rw-r--r--src/mod_webdav.c4
-rw-r--r--src/request.c3
3 files changed, 6 insertions, 2 deletions
diff --git a/src/connections.c b/src/connections.c
index e4db4102..d070929c 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -458,6 +458,7 @@ static int connection_handle_write_prepare(server *srv, connection *con) {
/* fall through */
case 207:
case 200: /* class: header + body */
+ case 201:
case 301:
case 302:
break;
diff --git a/src/mod_webdav.c b/src/mod_webdav.c
index 3306c73a..c78e6096 100644
--- a/src/mod_webdav.c
+++ b/src/mod_webdav.c
@@ -1294,6 +1294,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
}
} else {
con->http_status = 201;
+ con->file_finished = 1;
}
return HANDLER_FINISHED;
@@ -1390,6 +1391,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
chunk *c;
con->http_status = 201; /* created */
+ con->file_finished = 1;
for (c = cq->first; c; c = cq->first) {
int r = 0;
@@ -1606,6 +1608,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
rmdir(con->physical.path->ptr);
}
con->http_status = 201;
+ con->file_finished = 1;
} else {
/* it is just a file, good */
int r;
@@ -1625,6 +1628,7 @@ URIHANDLER_FUNC(mod_webdav_subrequest_handler) {
if (-1 == r) {
con->http_status = 201; /* we will create a new one */
+ con->file_finished = 1;
switch(errno) {
case ENOTDIR:
diff --git a/src/request.c b/src/request.c
index 020333ee..666db3c7 100644
--- a/src/request.c
+++ b/src/request.c
@@ -1003,12 +1003,11 @@ int http_request_parse(server *srv, connection *con) {
switch(con->request.http_method) {
case HTTP_METHOD_GET:
case HTTP_METHOD_HEAD:
- case HTTP_METHOD_OPTIONS:
/* content-length is forbidden for those */
if (con_length_set && con->request.content_length != 0) {
/* content-length is missing */
log_error_write(srv, __FILE__, __LINE__, "s",
- "GET/HEAD/OPTIONS with content-length -> 400");
+ "GET/HEAD with content-length -> 400");
con->keep_alive = 0;
con->http_status = 400;