Browse Source

Merge pull request #4720 from vieux/fix_content-type_cp

fix content-type detection in docker cp
Guillaume J. Charmes 11 years ago
parent
commit
d810218038
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/server.go

+ 1 - 1
api/server.go

@@ -883,7 +883,7 @@ func postContainersCopy(eng *engine.Engine, version version.Version, w http.Resp
 
 	var copyData engine.Env
 
-	if contentType := r.Header.Get("Content-Type"); contentType == "application/json" {
+	if contentType := r.Header.Get("Content-Type"); MatchesContentType(contentType, "application/json") {
 		if err := copyData.Decode(r.Body); err != nil {
 			return err
 		}