Refactored http headers in rspec.