'If a HEAD request is made, the I{Content-Length} header in the response
is added to the response headers, not the connection control headers.'

def test_headResponseContentLengthEntityHeader(self):

    protocol = HTTPClientParser(Request('HEAD', '/', _boringHeaders, None), (lambda rest: None))
    protocol.makeConnection(StringTransport())
    protocol.dataReceived('HTTP/1.1    200    OK\r\n')
    protocol.dataReceived('Content-Length:    123\r\n')
    protocol.dataReceived('\r\n')
    self.assertEqual(protocol.response.headers, Headers({'content-length': ['123']}))
    self.assertEqual(protocol.connHeaders, Headers({}))
    self.assertEqual(protocol.response.length, 0)
