Explorar o código

set default accept header

Gildas %!s(int64=4) %!d(string=hai) anos
pai
achega
9fb39d4aaa
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. 0 0
      dist/single-file.js
  2. 1 1
      lib/single-file/single-file-util.js

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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 } });

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio