ungarbled 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ac81a2282dca71b4d51d1d33c52e95a400caed9
4
- data.tar.gz: 0fc5788ff3b1b300f58c4203c788af4b28d22eeb
3
+ metadata.gz: fe02de75a4ec5e8d3206b4f833ad8e05ad20044e
4
+ data.tar.gz: 0468f35a36d7d0dda315c7ec7ae8a5f6065625a9
5
5
  SHA512:
6
- metadata.gz: a1ca1420f3f7c3d52507abf0258efb32b19baf31a8981a4e6f46e3114a3fa30acc280b83f637adf0341505676fd0c8b786c2107510b725fafbdfc0da8d8f6f90
7
- data.tar.gz: a3e6e22cf0232079e12aa048ca0f67a3114fab77b0626bf38bf68e03444cb3b3bbab74d112b4e24965345d78341944d0a5d35ca8b40003f34638c0c1f7c6ef33
6
+ metadata.gz: de67219b9984d8958093e164d082cd883a0bec19bfad4dfdd8ba6d89553536ee255e162fede1c4a77c5ca73df5a6161243d0f179e0516cf258f5ca207769d171
7
+ data.tar.gz: 673cd4206c6fb5a73b12e6349a44ab17c7f08ecfc96fbfedd4d4b0cf9f5c028da0fe955eb2e8931a1800a1cf81c3114832bf9243bf1d716c31313cc196a6887c
@@ -18,7 +18,7 @@ module Ungarbled
18
18
  status, headers, res = @app.call(env)
19
19
  disposition = headers[DISPOSITION_KEY]
20
20
 
21
- if sending_file?(headers) && disposition
21
+ if disposition
22
22
  headers[DISPOSITION_KEY] =
23
23
  encode_disposition(encoder, disposition)
24
24
  end
@@ -26,10 +26,6 @@ module Ungarbled
26
26
  [status, headers, res]
27
27
  end
28
28
 
29
- def sending_file?(headers)
30
- headers['Content-Transfer-Encoding'] = 'binary'
31
- end
32
-
33
29
  def encode_disposition(encoder, disposition)
34
30
  replacing = DISPOSITION_REGEX.match(disposition)[1]
35
31
  replaced = encoder.encode(replacing)
@@ -1,3 +1,3 @@
1
1
  module Ungarbled
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ungarbled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yukihiro hara