🐛 Fix setting contentType even tho there's no body
This commit is contained in:
		
							parent
							
								
									a7547f85ca
								
							
						
					
					
						commit
						d52d636641
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -90,7 +90,7 @@ export class APIRequest { | ||||||
|       ) |       ) | ||||||
|       form.append('payload_json', JSON.stringify(body)) |       form.append('payload_json', JSON.stringify(body)) | ||||||
|       body = form |       body = form | ||||||
|     } else { |     } else if (body !== undefined) { | ||||||
|       contentType = 'application/json' |       contentType = 'application/json' | ||||||
|       body = JSON.stringify(body) |       body = JSON.stringify(body) | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue