Skip to content

HTTP headers don't seem to be passed correctly to the request #65

@benpickles

Description

@benpickles

Making a request like so:

post :create, {}, { "X-BLAH" => "blah" }

ends up with a request object with the specified headers nested in "rack.session":

#<ActionController::TestRequest:0x105e02698 ... "rack.session"=>{"X-BLAH"=>"blah"} ... >

so, for instance, sending an HTTP_AUTHORIZATION header doesn't get picked up by authenticate_or_request_with_http_basic.

I'm using the gems:

gem "rails", "3.0.0.beta3"
gem "rspec", "2.0.0.beta.9"
gem "rspec-rails", "2.0.0.beta.9.1"

Ben

ps. This didn't happen with rspec 2 beta4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions