Browse Source

removed useless header

Gildas 7 years ago
parent
commit
3ab2d3e2a9
1 changed files with 2 additions and 9 deletions
  1. 2 9
      lib/single-file/single-file-browser.js

+ 2 - 9
lib/single-file/single-file-browser.js

@@ -25,19 +25,12 @@ this.SingleFile = (() => {
 
 
 	// --------
 	// --------
 	// Download
 	// Download
-	// --------
-	const USER_AGENT = "Mozilla/5.0 (compatible; SingleFile Bot/1.0)";
-
+	// --------	
 	let fetchResource;
 	let fetchResource;
 
 
 	class Download {
 	class Download {
 		static async getContent(resourceURL, asDataURI) {
 		static async getContent(resourceURL, asDataURI) {
-			const requestOptions = {
-				method: "GET",
-				headers: {
-					"User-Agent": USER_AGENT
-				}
-			};
+			const requestOptions = { method: "GET" };
 			let resourceContent;
 			let resourceContent;
 			if (!fetchResource) {
 			if (!fetchResource) {
 				fetchResource = typeof superFetch == "undefined" ? fetch : superFetch;
 				fetchResource = typeof superFetch == "undefined" ? fetch : superFetch;