Skip to content

Commit

Permalink
headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bartes committed Jul 9, 2024
1 parent caf082d commit 666d902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/rails/rails_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
'Accept' =>
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'Authorization' => true,
'Content-Length' => '0',
'Cookie' => true,
'Content-Length' => '0',
'Host' => 'www.example.com',
'X-Forwarded-For' => '5.5.5.5, 1.2.3.4',
'Remote-Addr' => '127.0.0.1',
Expand All @@ -40,7 +40,7 @@
}
end
let(:now) { Time.now }
let(:headers) { { 'HTTP_AUTHORIZATION' => 'Basic 123', 'HTTP_X_FORWARDED_FOR' => '5.5.5.5, 1.2.3.4', 'HTTP_CONTENT_LENGTH' => '0', 'HTTP_COOKIE' => "other=efgh" } }
let(:headers) { { 'HTTP_AUTHORIZATION' => 'Basic 123', 'HTTP_X_FORWARDED_FOR' => '5.5.5.5, 1.2.3.4', 'HTTP_VERSION' => 'HTTP/1.0', 'HTTP_CONTENT_LENGTH' => '0' } }

before do
Timecop.freeze(now)
Expand Down

0 comments on commit 666d902

Please sign in to comment.