ソースを参照

set default accept header

Gildas 4 年 前
コミット
9fb39d4aaa
2 ファイル変更1 行追加1 行削除
  1. 0 0
      dist/single-file.js
  2. 1 1
      lib/single-file/single-file-util.js

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/single-file.js


+ 1 - 1
lib/single-file/single-file-util.js

@@ -199,7 +199,7 @@ function getInstance(utilOptions) {
 			return { data: options.asBinary ? "data:null;base64," : "", resourceURL };
 		}
 		try {
-			const accept = options.acceptHeaders[options.expectedType] || "*/*";
+			const accept = options.acceptHeaders ? options.acceptHeaders[options.expectedType] : "*/*";
 			if (options.frameId) {
 				try {
 					response = await fetchFrameResource(resourceURL, { frameId: options.frameId, referrer: options.resourceReferrer, headers: { accept } });

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません