diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-07-10 00:27:01 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-07-10 00:27:01 -0700 |
| commit | 3afc2d2ce6f82d131a2887be44166ac373c57f4f (patch) | |
| tree | 375f4d244e1990f2a487d842b48195c364b1d8b2 /go | |
| parent | 4c200acd7dd663bed5f566c5538114ef66e5cbe3 (diff) | |
| download | seaweedfs-3afc2d2ce6f82d131a2887be44166ac373c57f4f.tar.xz seaweedfs-3afc2d2ce6f82d131a2887be44166ac373c57f4f.zip | |
remove unused code
Diffstat (limited to 'go')
| -rw-r--r-- | go/operation/upload_content.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/go/operation/upload_content.go b/go/operation/upload_content.go index 27ebb0f5a..cae657b2c 100644 --- a/go/operation/upload_content.go +++ b/go/operation/upload_content.go @@ -4,12 +4,10 @@ import ( "bytes" "encoding/json" "errors" - "path/filepath" _ "fmt" "io" "io/ioutil" "log" - "mime" "mime/multipart" "net/http" ) @@ -31,8 +29,7 @@ func Upload(uploadUrl string, filename string, reader io.Reader) (*UploadResult, log.Println("error copying data", err) return nil, err } - content_type := mime.TypeByExtension(filepath.Ext(filename)) - content_type := body_writer.FormDataContentType() + content_type := body_writer.FormDataContentType() if err = body_writer.Close(); err != nil { log.Println("error closing body", err) return nil, err |
