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

Function setGlobalOrigin

github-actions/browserstack/set-browserstack-env.js:3416–3436  ·  view source on GitHub ↗
(newOrigin)

Source from the content-addressed store, hash-verified

3414 ]
3415 );
3416 var requestBodyHeader = (
3417 /** @type {const} */
3418 [
3419 "content-encoding",
3420 "content-language",
3421 "content-location",
3422 "content-type",
3423 // See https://github.com/nodejs/undici/issues/2021
3424 // 'Content-Length' is a forbidden header name, which is typically
3425 // removed in the Headers implementation. However, undici doesn't
3426 // filter out headers, so we add it here.
3427 "content-length"
3428 ]
3429 );
3430 var requestDuplex = (
3431 /** @type {const} */
3432 [
3433 "half"
3434 ]
3435 );
3436 var forbiddenMethods = (
3437 /** @type {const} */
3438 ["CONNECT", "TRACE", "TRACK"]
3439 );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected