mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove unused code
This commit is contained in:
parent
4c200acd7d
commit
3afc2d2ce6
|
@ -4,12 +4,10 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"path/filepath"
|
||||
_ "fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
)
|
||||
|
@ -31,7 +29,6 @@ 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()
|
||||
if err = body_writer.Close(); err != nil {
|
||||
log.Println("error closing body", err)
|
||||
|
|
Loading…
Reference in a new issue