MCPcopy Index your code
hub / github.com/simstudioai/sim / makeResponse

Function makeResponse

apps/sim/lib/mcp/oauth/probe.test.ts:27–34  ·  view source on GitHub ↗
(init: { status?: number; headers?: Record<string, string> })

Source from the content-addressed store, hash-verified

25import { detectMcpAuthType } from '@/lib/mcp/oauth/probe'
26
27function makeResponse(init: { status?: number; headers?: Record<string, string> }): Response {
28 const status = init.status ?? 200
29 return {
30 status,
31 ok: status >= 200 && status < 300,
32 headers: new Headers(init.headers ?? {}),
33 } as unknown as Response
34}
35
36describe('detectMcpAuthType — connection pinning (SSRF / DNS-rebinding)', () => {
37 let globalFetchSpy: ReturnType<typeof vi.fn>

Callers 1

probe.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected