rack-grid-serve 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/grid_serve.rb +2 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f15f36dd211a0b4989e5b9f9419b511d54d4c91
|
4
|
+
data.tar.gz: bb83c242d493337ff48bf251537286d124548c4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de8a8e0c70bfbd3daef2d1defb4c1e31d58c6c173ff5c340d09b197cfab9b4b5ce541acdc2c6b890ad2bdf003f585713c98127d27222feb137e28ddde115afad
|
7
|
+
data.tar.gz: 3f8699cc96bad4379f89d10bddb26f5e9fc6fbe5b70b25e889896f75b976a94b1ad5e48decf89ffc46539eee3f8e5dd3edcb996149de69c1e02283e21017299b
|
data/lib/rack/grid_serve.rb
CHANGED
@@ -9,7 +9,7 @@ end
|
|
9
9
|
|
10
10
|
class Rack::GridServe
|
11
11
|
|
12
|
-
VERSION = '0.0.
|
12
|
+
VERSION = '0.0.10'.freeze
|
13
13
|
|
14
14
|
DEFAULT_PREFIX = 'gridfs'.freeze
|
15
15
|
DEFAULT_CACHE_CONTROL = 'no-cache'.freeze
|
@@ -63,11 +63,7 @@ class Rack::GridServe
|
|
63
63
|
headers.delete(CONTENT_LENGTH)
|
64
64
|
[304, headers, []]
|
65
65
|
else
|
66
|
-
|
67
|
-
@db.fs.open_download_stream(file[ID_KEY]) do |stream|
|
68
|
-
content = stream.read
|
69
|
-
end
|
70
|
-
[200, headers, [content]]
|
66
|
+
[200, headers, @db.fs.open_download_stream(file[ID_KEY])]
|
71
67
|
end
|
72
68
|
end
|
73
69
|
else
|