Refactor XML formatting in handle_propfind function
This commit is contained in:
parent
897e87f6e8
commit
bdef65eafd
@ -340,8 +340,7 @@ async function handle_propfind(request: Request, bucket: R2Bucket): Promise<Resp
|
||||
${Object.entries(fromR2Object(object))
|
||||
.filter(([_, value]) => value !== undefined)
|
||||
.map(([key, value]) => `<${key}>${value}</${key}>`)
|
||||
.join('\n ')
|
||||
}
|
||||
.join('\n ')}
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
|
Loading…
Reference in New Issue
Block a user