Skip to content

Commit

Permalink
Bump rack-test from 1.1.0 to 2.1.0 (#12715)
Browse files Browse the repository at this point in the history
* Bump rack-test from 1.1.0 to 2.1.0

Bumps [rack-test](https://github.com/rack/rack-test) from 1.1.0 to 2.1.0.
- [Release notes](https://github.com/rack/rack-test/releases)
- [Changelog](https://github.com/rack/rack-test/blob/main/History.md)
- [Commits](rack/rack-test@v1.1.0...v2.1.0)

---
updated-dependencies:
- dependency-name: rack-test
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix capitalization issue with rack-test

* add case for empty string (rack-test)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan McNeil <ryan.mcneil@oddball.io>
  • Loading branch information
dependabot[bot] and ryan-mcneil authored May 31, 2023
1 parent 91a36b5 commit 668d66f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ group :development, :test do
gem 'guard-rspec'
gem 'parallel_tests'
gem 'pry-byebug'
gem 'rack-test', '1.1.0', require: 'rack/test'
gem 'rack-test', '2.1.0', require: 'rack/test'
gem 'rack-vcr'
gem 'rainbow' # Used to colorize output for rake tasks
gem 'rspec-instrumentation-matcher'
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ GEM
rack (>= 2.0.0)
rack-protection (2.1.0)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rack-test (2.1.0)
rack (>= 1.3)
rack-timeout (0.6.3)
rack-vcr (0.1.6)
vcr (>= 2.9)
Expand Down Expand Up @@ -1144,7 +1144,7 @@ DEPENDENCIES
rack
rack-attack
rack-cors
rack-test (= 1.1.0)
rack-test (= 2.1.0)
rack-timeout
rack-vcr
rails!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def documents
@documents ||= params.slice(*document_keys).values.map do |document|
case document
when String
decode_document(document)
document.blank? ? nil : decode_document(document)
when ActionDispatch::Http::UploadedFile
document.original_filename = create_unique_filename(doc: document)
document
Expand Down
4 changes: 2 additions & 2 deletions modules/vba_documents/lib/vba_documents/multipart_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def self.create_file_from_base64(infile)
def self.get_partname(headers)
headers.each do |header|
name, _, value = header.partition(':')
if name == 'Content-Disposition'
if name.downcase == 'content-disposition'
value.split(';').each do |param|
k, _, v = param.strip.partition('=')
return v.tr('"', '') if k == 'name'
Expand All @@ -101,7 +101,7 @@ def self.get_partname(headers)
def self.get_content_type(headers)
headers.each do |header|
name, _, value = header.partition(':')
return value.split(';')[0].strip if name == 'Content-Type'
return value.split(';')[0].strip if name.downcase == 'content-type'
end
raise VBADocuments::UploadError.new(code: 'DOC101',
detail: 'Missing content-type header')
Expand Down

0 comments on commit 668d66f

Please sign in to comment.