spec/faraday/utils/headers_spec.rb in faraday-2.1.0 vs spec/faraday/utils/headers_spec.rb in faraday-2.2.0
- old
+ new
@@ -66,12 +66,12 @@
it { expect(subject['Content-Type']).to eq('text/html') }
it { expect(subject['content-type']).to eq('text/html') }
end
context 'when response headers values include a colon' do
- let(:headers) { "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nLocation: http://sushi.com/\r\n\r\n" }
+ let(:headers) { "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nLocation: http://httpbingo.org/\r\n\r\n" }
- it { expect(subject['location']).to eq('http://sushi.com/') }
+ it { expect(subject['location']).to eq('http://httpbingo.org/') }
end
context 'when response headers include a blank line' do
let(:headers) { "HTTP/1.1 200 OK\r\n\r\nContent-Type: text/html\r\n\r\n" }