PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_WebDAV_Server » Bug #7240

Last-Modified not sent on HEAD requests

Details

Submitted2006-03-29 08:58 UTC
Fromt dot bruederli at nexbyte dot com
Assignedhholzgra
StatusClosed
PackageHTTP_WebDAV_Server
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2006-03-29 08:58 UTC] t dot bruederli at nexbyte dot com

Description:
------------
Similar problem as described in Bug #6853.
Microsoft Data Access Internet Publishing Provider DAV 1.1 client shows an error message after putting a file to the DAV drive. The file is uploaded correctly but the system reports an error. While comparing the headers with other servers, I saw the Last-Modified header was missing. Sending that header (as done in GET requests) solves the problem.

Test script:
---------------
Just insert the following in method http_HEAD:

if (isset($options['mtime'])) {
header("Last-modified:".gmdate("D, d M Y H:i:s ", $options['mtime'])."GMT");
}