Skip to content

Commit

Permalink
Don't query escape get, put keys.
Browse files Browse the repository at this point in the history
The url is escaped by the net/http client.
  • Loading branch information
rlmcpherson committed Jul 23, 2014
1 parent 6b26fb5 commit d0d47b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions gof3r/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"io"
"log"
"net/url"
"os"

"github.com/rlmcpherson/s3gof3r"
Expand Down Expand Up @@ -33,7 +32,6 @@ func (get *Get) Execute(args []string) (err error) {
}
conf.PartSize = get.PartSize
conf.Md5Check = !get.NoMd5
get.Key = url.QueryEscape(get.Key)

s3gof3r.SetLogger(os.Stderr, "", log.LstdFlags, get.Debug)

Expand Down
2 changes: 0 additions & 2 deletions gof3r/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"io"
"log"
"net/http"
"net/url"
"os"

"github.com/rlmcpherson/s3gof3r"
Expand Down Expand Up @@ -33,7 +32,6 @@ func (put *Put) Execute(args []string) (err error) {
}
conf.PartSize = put.PartSize
conf.Md5Check = !put.NoMd5
put.Key = url.QueryEscape(put.Key)
s3gof3r.SetLogger(os.Stderr, "", log.LstdFlags, put.Debug)

if put.Header == nil {
Expand Down

0 comments on commit d0d47b0

Please sign in to comment.