aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 8cf31e382..030bf5889 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -13,7 +13,6 @@ import (
"net/textproto"
"path/filepath"
"strings"
- "time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
@@ -31,10 +30,9 @@ var (
)
func init() {
- client = &http.Client{
- Transport: &http.Transport{MaxIdleConnsPerHost: 1024},
- Timeout: 5 * time.Second,
- }
+ client = &http.Client{Transport: &http.Transport{
+ MaxIdleConnsPerHost: 1024,
+ }}
}
var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")