httpx 0.18.5 → 0.18.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_18_6.md +5 -0
- data/lib/httpx/plugins/multipart/mime_type_detector.rb +2 -0
- data/lib/httpx/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6784fbd393b5caed888e6c4d1a421cde9c7aca49f35baaafbf13f10a68e9d02
|
4
|
+
data.tar.gz: ddd5bb8793fa72b19e462b411f5eaaaf553f30d589a68dfdde64224c49d902f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 949f18741f10eaa57463b8764569e69cdfb1ca6f4eefa30bbdcf142cbbd8b61b360d9bd78898a816a4ebd9e15d4ffd1c0d8282033a459826919ce8132d5b105f
|
7
|
+
data.tar.gz: e4430eea967c9f5628d51e6150bc4f63e704eaed2bd61fda191f3539a3f102e00932cc8f63ddb735c33bbf21e2694bb23fed5eaea588159e71fa6f484016c150
|
@@ -9,6 +9,8 @@ module HTTPX
|
|
9
9
|
|
10
10
|
# inspired by https://github.com/shrinerb/shrine/blob/master/lib/shrine/plugins/determine_mime_type.rb
|
11
11
|
if defined?(FileMagic)
|
12
|
+
MAGIC_NUMBER = 256 * 1024
|
13
|
+
|
12
14
|
def call(file, _)
|
13
15
|
return nil if file.eof? # FileMagic returns "application/x-empty" for empty files
|
14
16
|
|
data/lib/httpx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -68,6 +68,7 @@ extra_rdoc_files:
|
|
68
68
|
- doc/release_notes/0_18_3.md
|
69
69
|
- doc/release_notes/0_18_4.md
|
70
70
|
- doc/release_notes/0_18_5.md
|
71
|
+
- doc/release_notes/0_18_6.md
|
71
72
|
- doc/release_notes/0_1_0.md
|
72
73
|
- doc/release_notes/0_2_0.md
|
73
74
|
- doc/release_notes/0_2_1.md
|
@@ -129,6 +130,7 @@ files:
|
|
129
130
|
- doc/release_notes/0_18_3.md
|
130
131
|
- doc/release_notes/0_18_4.md
|
131
132
|
- doc/release_notes/0_18_5.md
|
133
|
+
- doc/release_notes/0_18_6.md
|
132
134
|
- doc/release_notes/0_1_0.md
|
133
135
|
- doc/release_notes/0_2_0.md
|
134
136
|
- doc/release_notes/0_2_1.md
|