mint_http 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0d6eb6fc74d83a79da5384f6ecec034ea2402752539ac29b40b43c85a0422a0
4
- data.tar.gz: 29ba4aa2fdd0f1bb3dfeccb44d83766ea1908d945318db6cf918127c39c5eea7
3
+ metadata.gz: 77ff75e95387e2ccfde90a946d31a9b7550d45d337ebbedc8838003018296b70
4
+ data.tar.gz: 51f733220f11dae0439d0f30ecf80eab46925c5e5cfa019b42a62057c5bc7c3b
5
5
  SHA512:
6
- metadata.gz: f0d28be37857d0943a281ff4469095e0a9cb6d58a67a47a14dd7290970564e39306bde41d772a00511136d7cf0a3fef2a202ea3d300e64c40a44b5bc2783079d
7
- data.tar.gz: f0c4050bb642956395b7ccf13279659ef73e23787304127b44c663e9153d48510151438bf4295d8c3e3eeb8e86f80548d0be695daeb8c36829863ae8b532455b
6
+ metadata.gz: 9790d2693d711a634d26f19243fcdca950845118c831174f6426183d77fd885807f6391e17fcf25c8106894acccbb3b0da1a007b74ce7eefab33de06437387b4
7
+ data.tar.gz: cdc34a5e635f37e98f8e2981b634675152eab7218ab82e6bae669a2fb1842479f1c8b3c1af0831435161b9128af241c640e925197c53a7e322682425ec84e576
@@ -87,7 +87,7 @@ module MintHttp
87
87
  @@ TLS: #{tls}
88
88
  -> #{@request.method.upcase} #{path} HTTP/#{version}
89
89
  #{masked_headers(@net_request.each_header.to_h, '-> ')}
90
- -> #{masked_body(@request.body, @request.headers['content-type'])}
90
+ -> #{masked_body(@net_request.body, @request.headers['content-type'])}
91
91
  =======
92
92
  TXT
93
93
 
@@ -163,6 +163,8 @@ module MintHttp
163
163
  end
164
164
 
165
165
  def masked_body(body, type)
166
+ type ||= 'application/octet-stream'
167
+
166
168
  size = body&.bytesize || 0
167
169
  if size == 0
168
170
  return '[EMPTY]'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MintHttp
4
- VERSION = "0.1.9"
4
+ VERSION = "0.1.10"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mint_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Alhoshaiyan