aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-26 11:49:44 +0200
committerChocobozzz <me@florianbigard.com>2018-03-26 11:49:44 +0200
commitbf9ae5ce57c9e2117548ab5794c0c2a5096ba4ad (patch)
tree9e1e80f2681552df8813469cce231e1a9e370951 /server.ts
parent53eb90c0ab584ee48774e15ee7c0e764cfe4559d (diff)
downloadPeerTube-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.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index c19ec4f19..56a4a0c44 100644
--- a/server.ts
+++ b/server.ts
@@ -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
91app.use(bodyParser.urlencoded({ extended: false }))
91app.use(bodyParser.json({ 92app.use(bodyParser.json({
92 type: [ 'application/json', 'application/*+json' ], 93 type: [ 'application/json', 'application/*+json' ],
93 limit: '500kb' 94 limit: '500kb'
94})) 95}))
95app.use(bodyParser.urlencoded({ extended: false }))
96 96
97// ----------- Tracker ----------- 97// ----------- Tracker -----------
98 98