Mantis - Resin
Viewing Issue Advanced Details
1026 minor always 03-29-06 21:12 03-31-06 09:05
mattryall  
ferg  
normal  
closed 3.0.17  
fixed  
none    
none 3.0.19  
0001026: Resin does not conform to HTTP spec for HEAD method
According to the RFC 2616:

> The HEAD method is identical to GET except that the server
> MUST NOT return a message-body in the response.

Issuing a HEAD method to a Resin 2 or 3 server always returns the body of the content as well as the headers.

This puts unnecessary load on the network, and makes HEAD calls used by caches inefficient.
$ nc localhost 18080
HEAD http://localhost:18080/foobar [^] HTTP/1.1

HTTP/1.1 404 Not Found
Server: Resin/3.0.17
Content-Type: text/html
Transfer-Encoding: chunked
Date: Thu, 30 Mar 2006 05:10:28 GMT

00d4
<html>
<head><title>404 Not Found</title></head>
<body>
<h1>404 Not Found</h1>
/foobar was not found on this server.

<hr />
<small>
Resin-3.0.17 (built Thu, 22 Dec 2005 12:11:34 PST)
</small>
</body></html>


There are no notes attached to this issue.