1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

serve http/webdav: factor common http server creation to httplib

This commit is contained in:
Nick Craig-Wood
2018-02-14 20:39:11 +00:00
parent 442334ba61
commit 5530662ccc
7 changed files with 133 additions and 69 deletions

View File

@@ -28,7 +28,8 @@ const (
)
func startServer(t *testing.T, f fs.Fs) {
s := newServer(f, testBindAddress)
s := newServer(f)
s.srv.SetBindAddress(testBindAddress)
go s.serve()
// try to connect to the test server