This commit is contained in:
emersion 2017-09-13 11:43:12 +02:00
parent 16a9952616
commit a3c439da70
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
6 changed files with 89 additions and 89 deletions

View File

@ -9,9 +9,9 @@ import (
"sync"
"time"
"github.com/emersion/hydroxide/protonmail"
"github.com/emersion/go-vcard"
"github.com/emersion/go-webdav/carddav"
"github.com/emersion/hydroxide/protonmail"
)
type contextKey string

View File

@ -236,7 +236,7 @@ func main() {
sessions := make(map[string]*session)
s := &http.Server{
Addr: "127.0.0.1:"+port,
Addr: "127.0.0.1:" + port,
Handler: http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {
resp.Header().Set("WWW-Authenticate", "Basic")