Skip to content

Commit a7f21be

Browse files
committed
Fix getting headers on login
At this stage the URL may not be set. Or it could be set to the previous URL. We need to use the URL of the actual request.
1 parent 5923769 commit a7f21be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
6161

6262
// Add headers from the header command.
6363
axios.interceptors.request.use(async (config) => {
64-
Object.entries(await storage.getHeaders()).forEach(([key, value]) => {
64+
Object.entries(await storage.getHeaders(config.baseURL || axios.getUri(config))).forEach(([key, value]) => {
6565
config.headers[key] = value
6666
})
6767
return config

0 commit comments

Comments
 (0)