fixes request headers under rails