Use body instead of form for post request #3
| @ -19,7 +19,7 @@ module.exports.create = function(config) { | |||||||
| 				'Content-Type': 'application/json' | 				'Content-Type': 'application/json' | ||||||
| 			}, | 			}, | ||||||
| 			json: true, | 			json: true, | ||||||
| 			form: form | 			body: form | ||||||
| 		}; | 		}; | ||||||
| 		return request(req).then(function(resp) { | 		return request(req).then(function(resp) { | ||||||
| 			if (2 !== Math.floor(resp.statusCode / 100)) { | 			if (2 !== Math.floor(resp.statusCode / 100)) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user