@samitouri / QOSami-HFS / commits / 1635e687

fix: wrong PROPFIND response property order

Massimo Melina committed Jul 26, 2026 at 10:17 UTC 1635e687391b7a2e1a52ac5c8c25a4288fe52a11
1 file changed +1 -1
src/webdav.ts
+1 -1
@@ -348,13 +348,13 @@ export const webdav: Koa.Middleware = async (ctx, next) => {
348 res.write(`<response>
349 <href>${_.escape(outPath + (append ? pathEncode(name, true) + (isDir ? '/' : '') : ''))}</href>
350 <propstat>
351 - <status>HTTP/1.1 200 OK</status>
351 <prop>
352 ${prefix('<getlastmodified>', (st?.mtime as any)?.toGMTString(), '</getlastmodified>')}
353 ${prefix('<creationdate>', (st?.birthtime || st?.ctime)?.toISOString().replace(/\..*/, '-00:00'), '</creationdate>')}
354 ${isDir ? '<resourcetype><collection/></resourcetype>'
355 : `<resourcetype/><getcontentlength>${st?.size}</getcontentlength>`}
356 </prop>
357 + <status>HTTP/1.1 200 OK</status>
358 </propstat>
359 </response>
360 `)