Browse Source

allow proxy to svn-apache do a commit

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1015 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 17 years ago
parent
commit
c76b19673a
  1. 1
      src/connections.c
  2. 4
      src/mod_webdav.c
  3. 3
      src/request.c

1
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;

4
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:

3
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;

Loading…
Cancel
Save