mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🧑💻 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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user