Bugfixing for overwriting webserver headers in servlet engine