Windows - make docker cp functional

Signed-off-by: John Howard <jhoward@microsoft.com>

Conflicts:
	pkg/archive/copy.go

Make it compile

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard
2015-08-06 11:22:38 -07:00
parent c471b7aba5
commit 2a237615c0
5 changed files with 57 additions and 20 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package server
import (
"fmt"
"net/http"
"path/filepath"
"strconv"
"strings"
)
@@ -43,7 +44,7 @@ func archiveFormValues(r *http.Request, vars map[string]string) (archiveOptions,
}
name := vars["name"]
path := r.Form.Get("path")
path := filepath.FromSlash(r.Form.Get("path"))
switch {
case name == "":