🧑‍💻 Kernel serve CardDAV service on path /carddav/ (#12895)

* 🎨 add CardDAV server

* 🎨 change CardDAV principals path

* 🎨 implement load contacts feature

* 🎨 implement save contacts feature

* 🎨 implement address books CURD

* 🐛 fix CardDAV method `OPTIONS`

* 🎨 implement addresses CURD

* 🎨  implement CardDAV `REPORT` method

* 🎨 parse *.vcf file with multiple vCard
This commit is contained in:
Yingyi / 颖逸 2024-11-15 11:19:52 +08:00 committed by GitHub
parent 96194f7dae
commit c110b9ff13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1020 additions and 19 deletions

View file

@ -21,7 +21,6 @@ import (
"net"
"net/http"
"net/http/httputil"
"strconv"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/model"
@ -143,7 +142,7 @@ func (PublishServiceTransport) RoundTrip(request *http.Request) (response *http.
ProtoMinor: request.ProtoMinor,
Request: request,
Header: http.Header{
"WWW-Authenticate": {"Basic realm=" + strconv.Quote("Authorization Required")},
model.BasicAuthHeaderKey: {model.BasicAuthHeaderValue},
},
Close: false,
ContentLength: -1,