aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-02-18 03:16:25 -0800
committerGitHub <noreply@github.com>2021-02-18 03:16:25 -0800
commitf23f34d85d34e28a08a92bfcc0e0809cf951113e (patch)
tree88b5976b0e9382883ba21a20098c319a8787c002 /weed/operation/upload_content.go
parent3575d41009e4367658e75e6ae780c6260b80daf9 (diff)
parent352ac2f2712177d6a9c8220bab73823ff6748581 (diff)
downloadseaweedfs-f23f34d85d34e28a08a92bfcc0e0809cf951113e.tar.xz
seaweedfs-f23f34d85d34e28a08a92bfcc0e0809cf951113e.zip
Merge pull request #1813 from bingoohuang/master
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 0d5cfd29c..934075ff3 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -63,7 +63,7 @@ func init() {
}}
}
-var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")
+var fileNameEscaper = strings.NewReplacer(`\`, `\\`, `"`, `\"`)
// Upload sends a POST request to a volume server to upload the content with adjustable compression level
func UploadData(uploadUrl string, filename string, cipher bool, data []byte, isInputCompressed bool, mtype string, pairMap map[string]string, jwt security.EncodedJwt) (uploadResult *UploadResult, err error) {