Skip to content

Commit

Permalink
$mol_file webdav
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 13, 2024
1 parent 3be1c67 commit 2350b61
Show file tree
Hide file tree
Showing 6 changed files with 577 additions and 561 deletions.
4 changes: 1 addition & 3 deletions fetch/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ namespace $ {
export class $mol_fetch extends $mol_object2 {

static request( input : RequestInfo , init : RequestInit = {} ) {
const native = globalThis.fetch ?? $node['undici'].fetch

const controller = new AbortController()
let done = false

const promise = native( input , {
const promise = fetch( input , {
... init,
signal: controller!.signal,
} ).finally( ()=> {
Expand Down
Loading

0 comments on commit 2350b61

Please sign in to comment.