@n42/cli 0.3.13 → 0.3.15

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.
@@ -100,7 +100,10 @@ class Terminal {
100
100
  try {
101
101
  const fetchInit = {
102
102
  method: normalized.method,
103
- headers: normalized.headers,
103
+ headers: {
104
+ ...normalized.headers,
105
+ "X-Client-Source": "n42-cli"
106
+ },
104
107
  body: normalized.body,
105
108
  signal,
106
109
  credentials: normalized.credentials,
@@ -157,10 +160,7 @@ class Terminal {
157
160
  if (!req || typeof req.url !== "string") throw new Error("Missing url");
158
161
 
159
162
  const method = (req.method || "GET").toUpperCase();
160
- const headers = {
161
- ...(req.headers || {}),
162
- "X-Client-Source": "n42-cli"
163
- };
163
+ const headers = { ...(req.headers || {}) };
164
164
 
165
165
  // If body is object, default JSON
166
166
  let body = req.body ?? null;