diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-12-14 22:38:58 -0800 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-12-14 22:38:58 -0800 |
| commit | e921cb1a9d1cac23bd4863571f9b8cce2adfc78a (patch) | |
| tree | da45eac7fa4342a48262f2164776591788bf8d15 /go/storage/needle.go | |
| parent | df5e54e02af60f6a1537cd5853def4dad42932bc (diff) | |
| download | seaweedfs-e921cb1a9d1cac23bd4863571f9b8cce2adfc78a.tar.xz seaweedfs-e921cb1a9d1cac23bd4863571f9b8cce2adfc78a.zip | |
format changes
Diffstat (limited to 'go/storage/needle.go')
| -rw-r--r-- | go/storage/needle.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/go/storage/needle.go b/go/storage/needle.go index 32ebdae7d..e49368820 100644 --- a/go/storage/needle.go +++ b/go/storage/needle.go @@ -14,8 +14,8 @@ import ( "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/images" - "github.com/chrislusf/seaweedfs/go/util" "github.com/chrislusf/seaweedfs/go/operation" + "github.com/chrislusf/seaweedfs/go/util" ) const ( @@ -53,7 +53,9 @@ func (n *Needle) String() (str string) { return } -func ParseUpload(r *http.Request) (fileName string, data []byte, mimeType string, isGzipped bool, modifiedTime uint64, ttl *TTL, isChunkedFile bool, e error) { +func ParseUpload(r *http.Request) ( + fileName string, data []byte, mimeType string, isGzipped bool, + modifiedTime uint64, ttl *TTL, isChunkedFile bool, e error) { form, fe := r.MultipartReader() if fe != nil { glog.V(0).Infoln("MultipartReader [ERROR]", fe) @@ -163,7 +165,7 @@ func NewNeedle(r *http.Request, fixJpgOrientation bool) (n *Needle, e error) { } if isChunkedFile { - n.SetChunkManifest() + n.SetIsChunkManifest() } if fixJpgOrientation { |
