minor coding style fixes.
bugfix: removing request headers might lead to memory corruptions.