daemon/http: ensure HTTP headers are freed
This should solve a memory leak added in !1165 (merged).
Still needs more testing and perhaps a test deployment before merging.
Test deployment revelead additional issue which is now fixed
Edited by Tomas Krizek