Skip to content

Commit af6a20d

Browse files
committed
change x-powered-by string to match 'Solidus'
1 parent 4d66c7c commit af6a20d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function getJsonResource(tabID) {
5050
xhr.open('GET', jsonResourceURL, true);
5151
xhr.onreadystatechange = function() {
5252
var isSolidus, errMsg;
53-
isSolidus = (xhr.getResponseHeader('X-Powered-By').match(/Express/i));
53+
isSolidus = (xhr.getResponseHeader('X-Powered-By').match(/Solidus/i));
5454
if (xhr.readyState === 4 && isSolidus) { // Is complete Solidus response?
5555
if(xhr.status !== 200){ // Check that Solidus response didn't fail
5656
errMsg = 'Failed to get Solidus context. Status: ' + xhr.status;

0 commit comments

Comments
 (0)