Head request content length

Fixes #1290