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 +4 -4
- data/lib/mint_http/request_logger.rb +3 -1
- data/lib/mint_http/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ff75e95387e2ccfde90a946d31a9b7550d45d337ebbedc8838003018296b70
|
4
|
+
data.tar.gz: 51f733220f11dae0439d0f30ecf80eab46925c5e5cfa019b42a62057c5bc7c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(@
|
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]'
|
data/lib/mint_http/version.rb
CHANGED