mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fix
This commit is contained in:
1 parent
560e920624
commit
d59710ddf1
13 files changed
+181
-49
No files matched your search
@@ -175,8 +175,8 @@ class Handler {
|
||||
this.response.type = 'text/html';
|
||||
}
|
||||
|
||||
renderTitle(str) { // eslint-disable-line class-methods-use-this
|
||||
return str;
|
||||
renderTitle(str) {
|
||||
return `${this.translate(str)} - Hydro`;
|
||||
}
|
||||
|
||||
checkPerm(...args) {
|
||||
@@ -261,6 +261,7 @@ class Handler {
|
||||
path: this.request.path,
|
||||
uid: this.session.uid,
|
||||
});
|
||||
this.UIContext.csrfToken = this.csrfToken;
|
||||
this.preferJson = (this.request.headers.accept || '').includes('application/json');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user