kmz_compressor 2.0.4 → 2.0.5
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 +4 -4
- data/lib/kmz_compressor/middleware.rb +4 -0
- data/lib/kmz_compressor/version.rb +1 -1
- 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: 3b91bb80ad3cd6eba96d461f849d18e6bfa7df99
|
|
4
|
+
data.tar.gz: e1449adf0d97d7516aac843318be794421b67f63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f85edbd4c7a5b1b98d8c1b8364d95ebc0935833d36928863b0f4bad2a109cdd968be0f9e228024539120ccd4473626156aa038c49d14553a7eef2a2a49f1c0c4
|
|
7
|
+
data.tar.gz: b76b23cdc3e2a3acaff042aa916985b524ab3a484e1809420f251c61b81c3ae41d2e795bbce13c861c5069760d9e6e03c699386e986ea5055989e7a698d4bfd0
|
|
@@ -40,6 +40,10 @@ module KMZCompressor
|
|
|
40
40
|
response = [response.data]
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
# Allow Cross-Domain HEAD/GET requests to support subdomains
|
|
44
|
+
headers['Access-Control-Allow-Origin'] ||= '*'
|
|
45
|
+
headers['Access-Control-Request-Method'] ||= %w{HEAD GET}.join(",")
|
|
46
|
+
|
|
43
47
|
# Return the response to the next middleware in the chain
|
|
44
48
|
[status, headers, response]
|
|
45
49
|
else
|