Browse Source

Merge pull request #62 from JurJean/invalid-missing-content-type

Send Content-Length to eliminate missing Content-Type error in some cases
master
Nicolas Dextraze 4 years ago committed by GitHub
parent
commit
0db2b93b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/projections/projectionsClient.js

1
src/projections/projectionsClient.js

@ -139,6 +139,7 @@ ProjectionsClient.prototype.request = function(method, _url, data, userCredentia
});
req.on('error', reject);
if (data) {
req.setHeader('Content-Length', data.length);
req.setHeader('Content-Type', 'application/json');
req.write(data);
}

Loading…
Cancel
Save