mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Changing to file level use strict statement
This commit is contained in:
+2
-2
@@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
var utils = require('./utils');
|
||||
|
||||
var JSON_START = /^\s*(\[|\{[^\{])/;
|
||||
@@ -9,7 +11,6 @@ var DEFAULT_CONTENT_TYPE = {
|
||||
|
||||
module.exports = {
|
||||
transformRequest: [function (data, headers) {
|
||||
'use strict';
|
||||
if (utils.isArrayBuffer(data)) {
|
||||
return data;
|
||||
}
|
||||
@@ -27,7 +28,6 @@ module.exports = {
|
||||
}],
|
||||
|
||||
transformResponse: [function (data) {
|
||||
'use strict';
|
||||
if (typeof data === 'string') {
|
||||
data = data.replace(PROTECTION_PREFIX, '');
|
||||
if (JSON_START.test(data) && JSON_END.test(data)) {
|
||||
|
||||
Reference in New Issue
Block a user