feat: update
This commit is contained in:
@@ -12,7 +12,7 @@ func FullURI(ctx fiber.Ctx) string {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
u.Scheme = ctx.Protocol()
|
u.Scheme = ctx.Scheme()
|
||||||
u.Host = ctx.Host()
|
u.Host = ctx.Host()
|
||||||
|
|
||||||
return u.String()
|
return u.String()
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ const client = axios.create({
|
|||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
'X-Requested-With': 'XMLHttpRequest',
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'Accept-Language': 'zh-CN,zh;q=0.9',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user