Send Content-Length to eliminate missing Content-Type error in some cases
This commit is contained in:
		@@ -139,6 +139,7 @@ ProjectionsClient.prototype.request = function(method, _url, data, userCredentia
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
    req.on('error', reject);
 | 
					    req.on('error', reject);
 | 
				
			||||||
    if (data) {
 | 
					    if (data) {
 | 
				
			||||||
 | 
					      req.setHeader('Content-Length', data.length);
 | 
				
			||||||
      req.setHeader('Content-Type', 'application/json');
 | 
					      req.setHeader('Content-Type', 'application/json');
 | 
				
			||||||
      req.write(data);
 | 
					      req.write(data);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user