accept-header.https.tentative.html (747B)
1 <!DOCTYPE html> 2 <title>Accept: request header in webbundle requests</title> 3 <link 4 rel="help" 5 href="https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md" 6 /> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="../resources/test-helpers.js"></script> 10 <body> 11 <script> 12 setup(() => { 13 assert_true(HTMLScriptElement.supports("webbundle")); 14 }); 15 promise_test(async () => { 16 await addWebBundleElementAndWaitForLoad( 17 "../resources/check-accept-header-and-return-bundle.py", 18 /*resources=*/ [] 19 ); 20 }, "Accept: header in a request for a bundle should contain application/webbundle MIME type."); 21 </script> 22 </body>