Skip to content

Commit

Permalink
Do not block requests that doesn't contain a json content type
Browse files Browse the repository at this point in the history
  • Loading branch information
clemstoquart committed Sep 18, 2017
1 parent 148a18c commit a7636d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function overrideJsonHeader(request) {
value: "application/json"
};
request.responseHeaders.push(jsonHeader);

resolve({responseHeaders: request.responseHeaders});
}

resolve({responseHeaders: request.responseHeaders});
});
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "json-mime-type-override",
"version": "1.0",
"version": "1.1",

"description": "Allow to override any content type containing json to application/json",

Expand Down

0 comments on commit a7636d7

Please sign in to comment.