MCPcopy Create free account
hub / github.com/angular/dev-infra / adopt

Function adopt

github-actions/browserstack/set-browserstack-env.js:19525–19529  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

19523 }
19524 }
19525 const contentType = response.headersList.get("content-type", true);
19526 const mimeType = contentType !== null ? parseMIMEType(contentType) : "failure";
19527 const contentTypeValid = mimeType !== "failure" && mimeType.essence === "text/event-stream";
19528 if (response.status !== 200 || contentTypeValid === false) {
19529 this.close();
19530 this.dispatchEvent(new Event("error"));
19531 return;
19532 }

Callers 1

stepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected