Imported from golang.org/x/net/webdav, removed encoding/xml fork

This commit is contained in:
emersion
2017-08-26 15:14:38 +02:00
parent d0fe0f28b6
commit c79a50adf2
17 changed files with 7271 additions and 25 deletions

16
file_go1.7.go Normal file
View File

@@ -0,0 +1,16 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build go1.7
package webdav
import (
"context"
"net/http"
)
func getContext(r *http.Request) context.Context {
return r.Context()
}