enable gzip
This commit is contained in:
parent
797606db01
commit
ed2b7cebfc
2 changed files with 7 additions and 3 deletions
|
@ -33,7 +33,8 @@ def run():
|
|||
static_path = os.path.join(root_dir, 'static')
|
||||
|
||||
options = {
|
||||
'debug': not PID
|
||||
'debug': not PID,
|
||||
'gzip': True
|
||||
}
|
||||
|
||||
handlers = [
|
||||
|
|
|
@ -80,8 +80,11 @@ class User(db.Model):
|
|||
self.pending = ''
|
||||
if username:
|
||||
self.info['username'] = username
|
||||
|
||||
self.set_nickname(self.info.get('username', 'anonymous'))
|
||||
else:
|
||||
username = self.info.get('username')
|
||||
if not username:
|
||||
username = 'anonymous'
|
||||
self.set_nickname(username)
|
||||
# FIXME: need to set peered to False to not trigger changelog event
|
||||
# before other side receives acceptPeering request
|
||||
self.peered = False
|
||||
|
|
Loading…
Reference in a new issue