FAForever / website

FAForever's Website
http://www.faforever.com
MIT License
21 stars 37 forks source link

added missing return #465

Closed fcaps closed 1 year ago

fcaps commented 1 year ago

to fix issues like this:

website-website-1  |     [error] Incoming request to" /clans "failed with error " Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client "
website-website-1  |     Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
website-website-1  |         at new NodeError (node:internal/errors:406:5)
website-website-1  |         at ServerResponse.setHeader (node:_http_outgoing:652:11)
website-website-1  |         at ServerResponse.header (/code/node_modules/express/lib/response.js:794:10)
website-website-1  |         at ServerResponse.send (/code/node_modules/express/lib/response.js:174:12)
website-website-1  |         at done (/code/node_modules/express/lib/response.js:1035:10)
website-website-1  |         at exports.renderFile (/code/node_modules/pug/lib/index.js:448:12)
website-website-1  |         at exports.__express [as engine] (/code/node_modules/pug/lib/index.js:493:11)
website-website-1  |         at View.render (/code/node_modules/express/lib/view.js:135:8)
website-website-1  |         at tryRender (/code/node_modules/express/lib/application.js:657:10)
website-website-1  |         at Function.render (/code/node_modules/express/lib/application.js:609:3)