Forum: Ruby on Rails Integration tests prefixing headers with "HTTP-"

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
isopaleocopria (Guest)
on 2007-06-29 01:38
(Received via mailing list)
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.
This topic is locked and can not be replied to.