cvs: pear /HTTP_WebDAV_Server Server.php
[email protected] ("Hartmut Holzgraefe")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvshholzgra1209673687@cvsserver> |
hholzgra Thu May 1 20:28:07 2008 UTC
Modified files:
/pear/HTTP_WebDAV_Server Server.php
Log:
fix for Bug #13809 Unhandled HTTP_CONTENT_* Headers
http://cvs.php.net/viewvc.cgi/pear/HTTP_WebDAV_Server/Server.php?r1=1.73&r2=1.74&diff_format=u
Index: pear/HTTP_WebDAV_Server/Server.php
diff -u pear/HTTP_WebDAV_Server/Server.php:1.73 pear/HTTP_WebDAV_Server/Server.php:1.74
--- pear/HTTP_WebDAV_Server/Server.php:1.73 Wed Apr 23 03:02:26 2008
+++ pear/HTTP_WebDAV_Server/Server.php Thu May 1 20:28:06 2008
@@ -1,4 +1,4 @@
-<?php // $Id: Server.php,v 1.73 2008/04/23 03:02:26 hholzgra Exp $
+<?php // $Id: Server.php,v 1.74 2008/05/01 20:28:06 hholzgra Exp $
/*
+----------------------------------------------------------------------+
| Copyright (c) 2002-2007 Christian Stocker, Hartmut Holzgraefe |
@@ -1206,6 +1206,10 @@
$options["content_language"] = $val;
break;
+ case 'HTTP_CONTENT_LENGTH':
+ // defined on IIS and has the same value as CONTENT_LENGTH
+ break;
+
case 'HTTP_CONTENT_LOCATION': // RFC 2616 14.14
/* The meaning of the Content-Location header in PUT
or POST requests is undefined; servers are free
@@ -1233,6 +1237,10 @@
// on implementations that do not support this ...
break;
+ case 'HTTP_CONTENT_TYPE':
+ // defined on IIS and has the same value as CONTENT_TYPE
+ break;
+
case 'HTTP_CONTENT_MD5': // RFC 2616 14.15
// TODO: maybe we can just pretend here?
$this->http_status("501 not implemented");