Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
fix: stop bare v2 from being blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinLiquid authored Jan 29, 2024
1 parent 888ab49 commit 916c324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ server.on('request', (req, res) => {
res.setHeader('Access-Control-Allow-Headers', 'content-type')
res.setHeader('X-Proxy-Backend', 'FlowServer')

if (req.url?.includes('bare/v2') || req.url?.includes('bare/v3')) {
if (req.url?.includes('bare/v3')) {
res.writeHead(401, { 'Content-Type': 'application/json' })
res.write(JSON.stringify({
code: 401,
Expand Down

0 comments on commit 916c324

Please sign in to comment.