소스 검색

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 } });

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.