no longer possible to set cache_buster request param

This commit is contained in:
Raul Ochoa 2015-03-23 18:03:19 +01:00
parent e1e5f87123
commit 36ea58e750
2 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,6 @@ var assert = require('assert');
// Whitelist query parameters and attach format
var REQUEST_QUERY_PARAMS_WHITELIST = [
'user',
'cache_buster',
'cache_policy',
'callback',
'map_key',

View File

@ -64,12 +64,11 @@ suite('req2params', function() {
test('it should extend params with decoded lzma', function(done) {
var qo = {
style: 'test',
style_version: '2.1.0',
cache_buster: 5
config: {
version: '1.3.0'
}
};
test_helper.lzma_compress_to_base64(JSON.stringify(qo), 1, function(err, data) {
console.log(data);
var req = {
headers: {
host:'localhost'
@ -86,7 +85,7 @@ suite('req2params', function() {
return done(err);
}
var query = req.params;
assert.equal(qo.cache_buster, query.cache_buster);
assert.deepEqual(qo.config, query.config);
assert.equal('test', query.api_key);
assert.equal(undefined, query.non_included);
done();