-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the plugin was now moved to the transcoder layer, where it is available from the get-go.
- Loading branch information
1 parent
896914e
commit 3f73d2e
Showing
21 changed files
with
468 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "multipart/encoder" | ||
require_relative "multipart/decoder" | ||
require_relative "multipart/part" | ||
require_relative "multipart/mime_type_detector" | ||
|
||
module HTTPX::Transcoder | ||
module Multipart | ||
MULTIPART_VALUE_COND = lambda do |value| | ||
value.respond_to?(:read) || | ||
(value.respond_to?(:to_hash) && | ||
value.key?(:body) && | ||
(value.key?(:filename) || value.key?(:content_type))) | ||
end | ||
end | ||
end |
Oops, something went wrong.