Skip to content

Commit

Permalink
d70d709 Merge commit from fork
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Dec 13, 2024
1 parent c324eb0 commit 9cadaac
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/middleware/request-handler/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ async function measure(requestEv, name, fn) {
}
function isContentType(headers, ...types) {
var _a;
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;,/, 1)[0].trim()) ?? "";
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
return types.includes(type);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/middleware/request-handler/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ async function measure(requestEv, name, fn) {
}
function isContentType(headers, ...types) {
var _a;
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;,/, 1)[0].trim()) ?? "";
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
return types.includes(type);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/vite/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26035,7 +26035,7 @@ async function measure(requestEv, name, fn) {
}
function isContentType(headers, ...types) {
var _a;
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;,/, 1)[0].trim()) ?? "";
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
return types.includes(type);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/vite/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26025,7 +26025,7 @@ async function measure(requestEv, name, fn) {
}
function isContentType(headers, ...types) {
var _a;
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;,/, 1)[0].trim()) ?? "";
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
return types.includes(type);
}

Expand Down

0 comments on commit 9cadaac

Please sign in to comment.