mirror of
https://github.com/rclone/rclone.git
synced 2025-08-09 13:55:15 +02:00
http: fix webdav OPTIONS response (#6433)
This commit is contained in:
@ -14,6 +14,10 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func testEmptyHandler() http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})
|
||||
}
|
||||
|
||||
func testEchoHandler(data []byte) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
_, _ = w.Write(data)
|
||||
|
Reference in New Issue
Block a user