fix request headers processing