We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5923769 commit 2bb02f9Copy full SHA for 2bb02f9
src/extension.ts
@@ -61,9 +61,10 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
61
62
// Add headers from the header command.
63
axios.interceptors.request.use(async (config) => {
64
- Object.entries(await storage.getHeaders()).forEach(([key, value]) => {
65
- config.headers[key] = value
66
- })
+ Object.entries(await storage.getHeaders(config.baseURL || axios.getUri(config)))
+ .forEach(([key, value]) => {
+ config.headers[key] = value
67
+ })
68
return config
69
})
70
0 commit comments