mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fixing issue #3
This commit is contained in:
@@ -20,6 +20,11 @@ module.exports = function httpAdapter(resolve, reject, config) {
|
||||
config.headers || {}
|
||||
);
|
||||
|
||||
// Add Content-Length header if data exists
|
||||
if (data) {
|
||||
headers['Content-Length'] = data.length;
|
||||
}
|
||||
|
||||
// Parse url
|
||||
var parsed = url.parse(config.url);
|
||||
var options = {
|
||||
|
||||
Reference in New Issue
Block a user