MCPcopy Create free account
hub / github.com/PSPDFKit/nutrient-document-engine-mcp-server / normalizeHostForHeader

Function normalizeHostForHeader

src/index.ts:117–123  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

115 const app = express();
116
117 if (mcpHttpAuthToken) {
118 app.all('/mcp', createMcpHttpAuthMiddleware(mcpHttpAuthToken));
119 }
120
121 app.use(express.json());
122
123 const env = getEnvironment();
124 const normalizeHostForHeader = (host: string): string => {
125 const trimmedHost = host.trim();
126 if (trimmedHost.startsWith('[') && trimmedHost.endsWith(']')) {

Callers 1

createExpressAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected