Skip to content

Commit

Permalink
fix: Scope of intercepted requested
Browse files Browse the repository at this point in the history
This prevent other dav scopes to be intercepted.

Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Jan 9, 2025
1 parent c11ecc3 commit 18c55b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/webDavProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function setupWebDavDecryptionProxy() {
window.fetch = async (input: RequestInfo | URL, config: RequestInit = {}): Promise<Response> => {
let request = new Request(input, config)

if (!(request.url.includes('/remote.php/') && (request.method === 'GET' || request.method === 'PROPFIND'))) {
if (!(request.url.includes('/remote.php/dav/files/') && (request.method === 'GET' || request.method === 'PROPFIND'))) {
return originalFetch(request)
}

Expand Down

0 comments on commit 18c55b4

Please sign in to comment.