Skip to content

Commit 4549489

Browse files
committed
Rack 3 update: Fix headers handling
1 parent ca7b6b3 commit 4549489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/request/packages_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@
11941194

11951195
expect(last_response.status).to eq(202)
11961196
expect(last_response.body).to eq('')
1197-
expect(last_response.header['Location']).to match(%r{jobs/[a-fA-F0-9-]+})
1197+
expect(last_response.headers['Location']).to match(%r{jobs/[a-fA-F0-9-]+})
11981198
execute_all_jobs(expected_successes: 2, expected_failures: 0)
11991199
get "/v3/packages/#{guid}", {}, user_header
12001200
expect(last_response.status).to eq(404)

spec/unit/controllers/v3/application_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def warnings_incorrect_type
362362
routes.draw { get 'multiple_warnings' => 'anonymous#multiple_warnings' }
363363
get :multiple_warnings
364364
expect(response).to have_http_status(:ok)
365-
warnings = response.headers['X-Cf-Warnings'].split(',').map { |w| CGI.unescape(w) }
365+
warnings = response.headers['X-Cf-Warnings'].map { |w| CGI.unescape(w) }
366366
expect(warnings).to eq([
367367
'warning,a',
368368
'wa,rning b',

0 commit comments

Comments
 (0)