fix content-type detection in docker cp

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Merge pull request #4720 from vieux/fix_content-type_cp

fix content-type detection in docker cp