Skip to content

Commit

Permalink
Updated etag library.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianreavis committed Jun 20, 2015
1 parent c681d13 commit d6a9ddc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"async": "^0.9.0",
"bbox-intersect": "^0.1.1",
"etag": "^1.5.1",
"etag": "1.7.0",
"lodash": "^2.4.1",
"lru-cache": "^2.5.0",
"tilebelt": "^0.7.1"
Expand Down
14 changes: 7 additions & 7 deletions test/TileServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('TileServer', function() {
'X-Test': 'hello',
'Content-Length': 8,
'Cache-Control': HEADER_CACHECONTROL,
'ETag': '"0fyOrzaTe+DDuoz+Ciwb/g=="'
'ETag': '"8-0fyOrzaTe+DDuoz+Ciwb/g"'
});
done();
});
Expand Down Expand Up @@ -258,7 +258,7 @@ describe('TileServer', function() {
'X-Powered-By': HEADER_XPOWEREDBY,
'X-Test': 'hello',
'Cache-Control': HEADER_CACHECONTROL,
'ETag': '"0fyOrzaTe+DDuoz+Ciwb/g=="',
'ETag': '"8-0fyOrzaTe+DDuoz+Ciwb/g"',
'Content-Length': 8
});
done();
Expand All @@ -275,14 +275,14 @@ describe('TileServer', function() {
}
});

var req = TileRequest.parse('/layer/1/2/3/tile.png', {'if-none-match': '"0fyOrzaTe+DDuoz+Ciwb/g=="'}, 'GET');
var req = TileRequest.parse('/layer/1/2/3/tile.png', {'if-none-match': '"8-0fyOrzaTe+DDuoz+Ciwb/g"'}, 'GET');
server.serve(req, false, function(status, buffer, headers) {
assert.equal(status, 304);
assert.equal(buffer.toString('utf8'), '');
assert.deepEqual(headers, {
'X-Powered-By': HEADER_XPOWEREDBY,
'X-Test': 'hello',
'ETag': '"0fyOrzaTe+DDuoz+Ciwb/g=="',
'ETag': '"8-0fyOrzaTe+DDuoz+Ciwb/g"',
'Cache-Control': HEADER_CACHECONTROL,
'Content-Length': 8
});
Expand All @@ -309,7 +309,7 @@ describe('TileServer', function() {
'X-Test': 'hello',
'Content-Length': 8,
'Cache-Control': HEADER_CACHECONTROL,
'ETag': '"0fyOrzaTe+DDuoz+Ciwb/g=="'
'ETag': '"8-0fyOrzaTe+DDuoz+Ciwb/g"'
});
done();
});
Expand Down Expand Up @@ -337,7 +337,7 @@ describe('TileServer', function() {
'X-Res-Hook-2': '1',
'Content-Length': 17,
'Cache-Control': HEADER_CACHECONTROL,
'ETag': '"miLcq2wD06H4X7CEVf44aA=="'
'ETag': '"11-miLcq2wD06H4X7CEVf44aA"'
});
},
write: function(buffer) {
Expand Down Expand Up @@ -459,7 +459,7 @@ describe('TileServer', function() {
'X-Test': 'hello',
'Content-Length': 6,
'Cache-Control': HEADER_CACHECONTROL,
'ETag': '"tKiEF7PQFw11TGR8MLchag=="'
'ETag': '"6-tKiEF7PQFw11TGR8MLchag"'
});
done();
});
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('require("tilestrata")', function() {
'X-Powered-By': 'TileStrata/' + version,
'Content-Length': 4,
'Cache-Control': 'max-age=60',
'ETag': '"ExgdjMAeOQv2TJ5LDXp58w=="'
'ETag': '"4-ExgdjMAeOQv2TJ5LDXp58w"'
};

var server = new TileServer();
Expand Down

0 comments on commit d6a9ddc

Please sign in to comment.