mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Add Accept-Language header value in the about page
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
proxy server that was set on this server, used to proxy images from
|
||||
i.pximg.net
|
||||
</li>
|
||||
<li>
|
||||
<b>Accept-Language header</b>: {{ AcceptLanguage }}<br />The value of the
|
||||
Accept-Language header this server uses to request to Pixiv's APIs.
|
||||
</li>
|
||||
</ul>
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
+5
-4
@@ -362,10 +362,11 @@ func get_logged_in_user(c *fiber.Ctx) error {
|
||||
|
||||
func about_page(c *fiber.Ctx) error {
|
||||
info := fiber.Map{
|
||||
"Time": configs.StartingTime,
|
||||
"BaseURL": configs.BaseURL,
|
||||
"Version": configs.Version,
|
||||
"ImageProxy": configs.ProxyServer,
|
||||
"Time": configs.StartingTime,
|
||||
"BaseURL": configs.BaseURL,
|
||||
"Version": configs.Version,
|
||||
"ImageProxy": configs.ProxyServer,
|
||||
"AcceptLanguage": configs.AcceptLanguage,
|
||||
}
|
||||
return c.Render("pages/about", info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user