Fixed http body
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "@ztimson/utils",
 | 
			
		||||
	"version": "0.14.3",
 | 
			
		||||
	"version": "0.14.4",
 | 
			
		||||
	"description": "Utility library",
 | 
			
		||||
	"author": "Zak Timson",
 | 
			
		||||
	"license": "MIT",
 | 
			
		||||
 
 | 
			
		||||
@@ -70,7 +70,7 @@ export class Http {
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		if(typeof opts.body == 'object' && opts.body != null && headers['Content-Type'] == 'application/json')
 | 
			
		||||
			opts.body = JSON.stringify(opts.json);
 | 
			
		||||
			opts.body = JSON.stringify(opts.body);
 | 
			
		||||
 | 
			
		||||
		// Send request
 | 
			
		||||
		return new PromiseProgress((res, rej, prog) => {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user