bugfix: removing a request header might lead to memory corruptions. thanks Bjørnar Ness for the report.