fix a bug in the HEAD output, where we were required to drop some new lines to create a valid response