@n42/cli 0.3.12 → 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,
@@ -159,8 +162,6 @@ class Terminal {
159
162
  const method = (req.method || "GET").toUpperCase();
160
163
  const headers = { ...(req.headers || {}) };
161
164
 
162
- headers["X-Client-Source"] = "n42-cli";
163
-
164
165
  // If body is object, default JSON
165
166
  let body = req.body ?? null;
166
167
  if (body && typeof body === "object" && !(body instanceof FormData) && !(body instanceof Blob)) {