diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-05-12 22:59:00 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-05-12 22:59:00 -0700 |
| commit | 68ceea3f8d788cfab912491af7eb7384701457a6 (patch) | |
| tree | beaeab94c0d6bec199aaf148a0ab40844f93e71a /go/util/http_util.go | |
| parent | 328aa48c6a666e15033f34e072e40a6ba41c6d36 (diff) | |
| download | seaweedfs-68ceea3f8d788cfab912491af7eb7384701457a6.tar.xz seaweedfs-68ceea3f8d788cfab912491af7eb7384701457a6.zip | |
support file names with a comma inside.
Diffstat (limited to 'go/util/http_util.go')
| -rw-r--r-- | go/util/http_util.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/go/util/http_util.go b/go/util/http_util.go index 6562e964c..5d46cb9b3 100644 --- a/go/util/http_util.go +++ b/go/util/http_util.go @@ -100,6 +100,7 @@ func DownloadUrl(fileUrl string) (filename string, content []byte, e error) { glog.V(4).Info("Content-Disposition: ", contentDisposition[0]) if strings.HasPrefix(contentDisposition[0], "filename=") { filename = contentDisposition[0][len("filename="):] + filename = strings.Trim(filename, "\"") } } else { glog.V(4).Info("No Content-Disposition!") |
