# Integration tests prefixing headers with "HTTP-"

**URL:** <https://www.ruby-forum.com/t/integration-tests-prefixing-headers-with-http/108089>\
**Category:** Rails\
**Created:** [June 28, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/integration-tests-prefixing-headers-with-http/108089 "2007-06-28T23:38:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![isopaleocopria](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/bb73d2/32.png) [@isopaleocopria](https://www.ruby-forum.com/u/isopaleocopria)\
**Post date:** [June 28, 2007, 11:38pm UTC](https://www.ruby-forum.com/t/integration-tests-prefixing-headers-with-http/108089/1 "2007-06-28T23:38:55Z")

</div>

When I pass HTTP headers like “Accept” or “If-Not-Modifed-Since” to a  
get request in a Rails integration test, the test base class prefixes  
the headers with “HTTP-”, and converts them to upper case.

Why does it prepend “HTTP-”? I looked over the spec at W3C, and there  
is no mention of such a prefix. My browser sends “If-Not-Modified-  
Since”, without a prefix.
