mirror of
https://github.com/hesprs/obsidian-webdav-sync.git
synced 2026-07-22 06:14:17 +00:00
* fix(webdav-patch): use content-type header instead of accept for requestUrl PROPFIND requests send a comma-separated Accept header (text/plain,application/xml), which was previously used as the Content-Type when forwarding to Obsidian's requestUrl. Some WebDAV servers (e.g. GMX) reject that with 400 Bad Request since it's not a valid Content-Type value. Prefer the actual content-type header and only fall back to accept when it's absent. * fix(webdav-patch): never fall back to accept for requestUrl contentType client.exists()/stat() PROPFIND requests only set an Accept header (a comma list) and send no body, so the previous fallback still leaked the comma list into Content-Type and GMX kept rejecting it with 400. Only use an explicit content-type header; leave contentType unset otherwise. * cleanup(api): cleanup dead code in API patch `retractedHeaders` seems to be unused. Old technical debt, remove anyway. --------- Co-authored-by: Hēsperus <hesprs@outlook.com> |
||
|---|---|---|
| .. | ||
| mocks | ||
| encryption-utils.test.ts | ||
| glob-match.test.ts | ||
| merge-utils.test.ts | ||
| mobile-compat.test.ts | ||
| optimize-tasks.test.ts | ||
| platform-path.test.ts | ||
| split-chunks.test.ts | ||
| traverse-webdav.test.ts | ||
| unit-converter.test.ts | ||
| v3-migration-modules.test.ts | ||
| v3-migration-service.test.ts | ||
| v3-migration-settings.test.ts | ||
| v3-migration-storage.test.ts | ||
| webdav-patch.test.ts | ||
| webdav.test.ts | ||