Home » HTTP » HTTP_WebDAV_Server » Bug #7240
Last-Modified not sent on HEAD requests
Details
| Submitted | 2006-03-29 08:58 UTC |
|---|---|
| From | t dot bruederli at nexbyte dot com |
| Assigned | hholzgra |
| Status | Closed |
| Package | HTTP_WebDAV_Server |
| PHP Version | 4.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");
}