diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-26 11:49:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-26 11:49:44 +0200 |
commit | bf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad (patch) | |
tree | 9e1e80f2681552df8813469cce231e1a9e370951 /server.ts | |
parent | 53eb90c0ab584ee48774e15ee7c0e764cfe4559d (diff) | |
download | PeerTube-bf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad.tar.gz PeerTube-bf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad.tar.zst PeerTube-bf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad.zip |
Fix log in with special password character (+)
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,11 +88,11 @@ app.use(morgan('combined', { | |||
88 | stream: { write: logger.info.bind(logger) } | 88 | stream: { write: logger.info.bind(logger) } |
89 | })) | 89 | })) |
90 | // For body requests | 90 | // For body requests |
91 | app.use(bodyParser.urlencoded({ extended: false })) | ||
91 | app.use(bodyParser.json({ | 92 | app.use(bodyParser.json({ |
92 | type: [ 'application/json', 'application/*+json' ], | 93 | type: [ 'application/json', 'application/*+json' ], |
93 | limit: '500kb' | 94 | limit: '500kb' |
94 | })) | 95 | })) |
95 | app.use(bodyParser.urlencoded({ extended: false })) | ||
96 | 96 | ||
97 | // ----------- Tracker ----------- | 97 | // ----------- Tracker ----------- |
98 | 98 | ||