Verified Commit 42609411 authored by valenting's avatar valenting Committed by ma1
Browse files

Bug 1881258 - Make HTML mimesniffing match the spec...

Bug 1881258 - Make HTML mimesniffing match the spec r=necko-reviewers,jesup,devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D255120
parent 3372a732
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@

const httpServer = createTestHTTPServer();
httpServer.registerPathHandler(`/`, function (request, response) {
  response.setHeader("Content-Type", "text/html");
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.write(`
    <meta charset=utf8>
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@

const httpServer = createTestHTTPServer();
httpServer.registerPathHandler(`/`, function (request, response) {
  response.setHeader("Content-Type", "text/html");
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.write(`<script type="text/javascript" src="test.js"></script>`);
});
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@

const httpServer = createTestHTTPServer();
httpServer.registerPathHandler(`/`, function (request, response) {
  response.setHeader("Content-Type", "text/html");
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.write(`
    <meta charset=utf8>
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
const httpServer = createTestHTTPServer();
httpServer.registerPathHandler(`/`, function (request, response) {
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.setHeader("Content-Type", "text/html");
  response.write(`
    <html>
      <head>
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
const httpServer = createTestHTTPServer();
httpServer.registerPathHandler(`/`, function (request, response) {
  response.setStatusLine(request.httpVersion, 200, "OK");
  response.setHeader("Content-Type", "text/html");
  response.write(`
    <html>
      <head>
Loading