mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
Readded support for apikey (#6382)
This commit is contained in:
parent
2c1916ac09
commit
556c3c8e5b
7 changed files with 74 additions and 14 deletions
|
@ -608,7 +608,7 @@ exports.expressPreSession = async (hookName:string, {app}:any) => {
|
|||
for (const funcName of Object.keys(apiHandler.version[version])) {
|
||||
const handler = async (c: any, req:any, res:any) => {
|
||||
// parse fields from request
|
||||
const {header, params, query} = c.request;
|
||||
const {headers, params, query} = c.request;
|
||||
|
||||
// read form data if method was POST
|
||||
let formData:MapArrayType<any> = {};
|
||||
|
@ -622,8 +622,7 @@ exports.expressPreSession = async (hookName:string, {app}:any) => {
|
|||
}
|
||||
}
|
||||
|
||||
const fields = Object.assign({}, header, params, query, formData);
|
||||
|
||||
const fields = Object.assign({}, headers, params, query, formData);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug(`REQUEST, v${version}:${funcName}, ${JSON.stringify(fields)}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue