bugfix: #4067 openapi incorrect syntax (#4138)

https://github.com/ether/etherpad-lite/issues/4067#issuecomment-650423412 

Thanks to @tom-chase
This commit is contained in:
John McLear 2020-06-27 09:47:16 +01:00 committed by GitHub
parent 75ecb3f49b
commit 8a13bde535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -688,7 +688,7 @@ exports.expressCreateServer = async (_, args) => {
// support jsonp response format
if (req.query.jsonp && isValidJSONPName.check(req.query.jsonp)) {
res.header('Content-Type', 'application/javascript');
response = `${req.query.jsonp}(${JSON.stringify(response)}`;
response = `${req.query.jsonp}(${JSON.stringify(response)})`;
}
// send response