weavejester/compojure — Issue #49: route/files returning HTTP HEAD with missing or empty fields
Author: gerrard-mcnulty
Created: 2012-01-20 17:22:09+00:00
State: open

Using compojure 1.01

When I retrieve HTTP HEAD for a static file exported by route/files, the header is:

HTTP/1.1 200 OK
Date: Fri, 20 Jan 2012 17:18:41 GMT
Content-Length: 0
Server: Jetty(6.1.25)

But when I retrieve the same file using HTTP GET, the header is:

HTTP/1.1 200 OK
Date: Fri, 20 Jan 2012 17:19:50 GMT
Content-Length: 168
Last-Modified: Fri, 20 Jan 2012 17:12:31 +0000
Content-Type: application/octet-stream
Server: Jetty(6.1.25)