feat: update

This commit is contained in:
yanghao05
2025-04-29 20:32:21 +08:00
parent 128dc4cdab
commit 3c269a9445
2 changed files with 4 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ func FullURI(ctx fiber.Ctx) string {
if err != nil {
return ""
}
u.Scheme = ctx.Protocol()
u.Scheme = ctx.Scheme()
u.Host = ctx.Host()
return u.String()

View File

@@ -7,6 +7,9 @@ const client = axios.create({
withCredentials: true,
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest',
'Accept': 'application/json',
'Accept-Language': 'zh-CN,zh;q=0.9',
}
});