MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / baseHeaders

Function baseHeaders

packages/plugins/apps/src/git-client/transport.ts:29–35  ·  view source on GitHub ↗
(auth: AuthRecipe)

Source from the content-addressed store, hash-verified

27}
28
29function baseHeaders(auth: AuthRecipe): Record<string, string> {
30 const h: Record<string, string> = {
31 "user-agent": "git/2.x",
32 };
33 if (auth.authorization) h.authorization = auth.authorization;
34 return h;
35}
36
37function normalizeRepoUrl(url: string): string {
38 let u = url.trim();

Callers 2

checkRefsFunction · 0.85
uploadPackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected