Skip to content

Commit

Permalink
Merge pull request #90 from asonas/feature/fix-faraday-multipart-1.1.0
Browse files Browse the repository at this point in the history
Fix NoMethodError: undefined method `mime_type=' for ChatWork::Multipart:Class with faraday-multipart v1.1.0+
  • Loading branch information
sue445 authored Dec 18, 2024
2 parents cab7eb6 + 91c5d81 commit 1a90495
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion chatwork.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "faraday", ">= 2.0.0"
spec.add_dependency "faraday-mashify"
spec.add_dependency "faraday-multipart"
spec.add_dependency "faraday-multipart", ">= 1.1.0"

spec.add_development_dependency "activesupport"
spec.add_development_dependency "bundler", ">= 1.3"
Expand Down
2 changes: 0 additions & 2 deletions lib/chatwork/multipart.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module ChatWork
class Multipart < ::Faraday::Multipart::Middleware
self.mime_type = "multipart/form-data".freeze

def create_multipart(env, params)
original_body = super(env, params)

Expand Down

0 comments on commit 1a90495

Please sign in to comment.