Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7f21be

Browse files
committed
Fix getting headers on login
At this stage the URL may not be set. Or it could be set to theprevious URL. We need to use the URL of the actual request.
1 parent5923769 commita7f21be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/extension.ts‎

Lines changed: 1 addition & 1 deletion
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(awaitstorage.getHeaders()).forEach(([key,value])=>{
64+
Object.entries(awaitstorage.getHeaders(config.baseURL||axios.getUri(config))).forEach(([key,value])=>{
6565
config.headers[key]=value
6666
})
6767
returnconfig

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp