@ivotoby/openapi-mcp-server 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -23575,8 +23575,12 @@ function parseHeaders(headerStr) {
23575
23575
  const headers = {};
23576
23576
  if (headerStr) {
23577
23577
  headerStr.split(",").forEach((header) => {
23578
- const [key, value] = header.split(":");
23579
- if (key && value) headers[key.trim()] = value.trim();
23578
+ const colonIndex = header.indexOf(":");
23579
+ if (colonIndex > 0) {
23580
+ const key = header.substring(0, colonIndex).trim();
23581
+ const value = header.substring(colonIndex + 1).trim();
23582
+ if (key) headers[key] = value;
23583
+ }
23580
23584
  });
23581
23585
  }
23582
23586
  return headers;
package/dist/cli.js CHANGED
@@ -23575,8 +23575,12 @@ function parseHeaders(headerStr) {
23575
23575
  const headers = {};
23576
23576
  if (headerStr) {
23577
23577
  headerStr.split(",").forEach((header) => {
23578
- const [key, value] = header.split(":");
23579
- if (key && value) headers[key.trim()] = value.trim();
23578
+ const colonIndex = header.indexOf(":");
23579
+ if (colonIndex > 0) {
23580
+ const key = header.substring(0, colonIndex).trim();
23581
+ const value = header.substring(colonIndex + 1).trim();
23582
+ if (key) headers[key] = value;
23583
+ }
23580
23584
  });
23581
23585
  }
23582
23586
  return headers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ivotoby/openapi-mcp-server",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "An MCP server that exposes OpenAPI endpoints as resources",
5
5
  "license": "MIT",
6
6
  "type": "module",