tileblaster 0.3.4 → 0.3.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.
- package/lib/tileblaster.js +4 -1
- package/package.json +3 -3
package/lib/tileblaster.js
CHANGED
|
@@ -486,7 +486,10 @@ tileblaster.prototype.fetchtile = function(tileurl, mapid, fn){
|
|
|
486
486
|
url: tileurl,
|
|
487
487
|
encoding: null, // no conversion to string
|
|
488
488
|
gzip: true, // some tileservers enforce gzip, so better expect it
|
|
489
|
-
headers: {
|
|
489
|
+
headers: {
|
|
490
|
+
'user-agent': self.config.useragent, // be nice and tell who we are
|
|
491
|
+
...(self.config.maps[mapid].headers||{}), // extra headers from config
|
|
492
|
+
},
|
|
490
493
|
}).on('response', function(resp){
|
|
491
494
|
|
|
492
495
|
// check mime type, status code, content-length, FIXME: cache!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tileblaster",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "pretty fast optimizing & compressing tile caching proxy",
|
|
5
5
|
"main": "lib/tileblaster.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"debug": "^4.3.4",
|
|
21
21
|
"dur": "^0.0.3",
|
|
22
|
-
"glob": "^
|
|
22
|
+
"glob": "^8.0.3",
|
|
23
23
|
"minimist": "^1.2.6",
|
|
24
24
|
"mkdirp": "^1",
|
|
25
25
|
"node-watch": "^0.7.3",
|
|
26
26
|
"nsa": "^0.2",
|
|
27
|
-
"quu": "^0.4.
|
|
27
|
+
"quu": "^0.4.3",
|
|
28
28
|
"request": "^2.88"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|