Skip to content

Commit 4005a0e

Browse files
committed
style: Format files with Prettier
1 parent e79d978 commit 4005a0e

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/client/auth.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,7 +2529,7 @@ describe('OAuth Authorization', () => {
25292529
// Create a wrapped fetch with a custom Accept header
25302530
const wrappedFetch = createFetchWithInit(customFetch, {
25312531
headers: {
2532-
'Accept': 'text/plain',
2532+
Accept: 'text/plain',
25332533
'user-agent': 'MyApp/1.0'
25342534
}
25352535
});
@@ -2543,8 +2543,8 @@ describe('OAuth Authorization', () => {
25432543

25442544
// Auth-specific Accept header should override base Accept header
25452545
expect(options.headers).toMatchObject({
2546-
'Accept': 'application/json', // Auth-specific value wins
2547-
'user-agent': 'MyApp/1.0', // Base value preserved
2546+
Accept: 'application/json', // Auth-specific value wins
2547+
'user-agent': 'MyApp/1.0', // Base value preserved
25482548
'MCP-Protocol-Version': LATEST_PROTOCOL_VERSION
25492549
});
25502550
});

src/client/streamableHttp.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ export class StreamableHTTPClientTransport implements Transport {
258258
return Math.min(initialDelay * Math.pow(growFactor, attempt), maxDelay);
259259
}
260260

261-
262261
/**
263262
* Schedule a reconnection attempt with exponential backoff
264263
*

src/shared/transport.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ export function createFetchWithInit(baseFetch: FetchLike = fetch, baseInit?: Req
3939
...baseInit,
4040
...init,
4141
// Headers need special handling - merge instead of replace
42-
headers: init?.headers
43-
? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) }
44-
: baseInit.headers
42+
headers: init?.headers ? { ...normalizeHeaders(baseInit.headers), ...normalizeHeaders(init.headers) } : baseInit.headers
4543
};
4644
return baseFetch(url, mergedInit);
4745
};

0 commit comments

Comments
 (0)