Some connections don't accept POST
Let's fix that tepomrarily
This commit is contained in:
		
							parent
							
								
									8db6ca82a6
								
							
						
					
					
						commit
						0b67d23d3f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -27,7 +27,7 @@ export default class net { | |||
| 		 | ||||
| 		try { | ||||
| 			// Fetch the file. Add headers when defined. 
 | ||||
| 			CONNECT = await fetch(URL, {method: `POST`, headers: HEADERS}); | ||||
| 			(Object.keys(HEADERS).length) ? CONNECT = await fetch(URL, {method: `POST`, headers: HEADERS}) : CONNECT = await fetch(URL); | ||||
| 			 | ||||
| 			if (CONNECT.ok && !VERIFY_ONLY) { | ||||
| 				DATA = await CONNECT[(TYPE.toLowerCase().includes('blob')) ? `blob` : `text`](); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue