Skip to content

Commit

Permalink
Fix strict static requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
mprudnik committed Sep 7, 2023
1 parent 8b4b206 commit d1ef846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ class Server {

this.httpServer.on('request', async (req, res) => {
const transport = new HttpTransport(this, req, res);
if (application.static.constructor.name !== 'Static') return;
if (!req.url.startsWith('/api')) {
if (application.static.constructor.name !== 'Static') return;
return void application.static.serve(req.url, transport);
}
if (balancer) this.balancing(transport);
Expand Down

0 comments on commit d1ef846

Please sign in to comment.