Skip to content

Commit

Permalink
Removed parameter name for cache buster
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gronewold committed Dec 9, 2015
1 parent 641119e commit d853d32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ try {
function with_query_strings (request) {
var timestamp = Date.now().toString()
if (request._query !== undefined && request._query[0]) {
request._query[0] += '&buster=' + timestamp
request._query[0] += '&' + timestamp
} else {
request._query = [timestamp]
}
Expand Down
2 changes: 1 addition & 1 deletion test/superagent-no-cache.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function _specIEExistingQuery (done) {
expect(results._query[0])
.to.be.a('string')
expect(results._query[0])
.to.match(/^param=123&buster=[0-9].*$/)
.to.match(/^param=123&[0-9].*$/)
done();
}

Expand Down

0 comments on commit d853d32

Please sign in to comment.