Skip to content

Commit

Permalink
fix: not to process the urls started with '/api' by default
Browse files Browse the repository at this point in the history
  • Loading branch information
s12mmm3 committed Aug 31, 2024
1 parent 22e70fa commit 2c609d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ hook.request.before = (ctx) => {
hook.target.host.has(host)
) &&
req.method === 'POST' &&
(url.path.startsWith('/eapi/') || url.path.startsWith('/api/'))
(url.path.startsWith('/eapi/') || // eapi
// url.path.startsWith('/api/') || // api
url.path.startsWith('/api/linux/forward')) // linuxapi
) {
return request
.read(req)
Expand Down

0 comments on commit 2c609d2

Please sign in to comment.