web: Add targetProto for putObjectURL,getObjectURL SSL requests.

Currently the default request was based on the 'minio server'
SSL configuration. But inside a proxy this is invalid browser
needs to send which protocol it wishes the PresignedURL
should be generated for.
This commit is contained in:
Harshavardhana
2016-02-20 01:52:21 -08:00
parent a18620fa86
commit 4db136c19c
2 changed files with 17 additions and 10 deletions

View File

@@ -52,7 +52,6 @@ type webAPI struct {
Client minio.CloudStorageClient
// private params.
inSecure bool // Enabled if TLS is false.
apiAddress string // api destination address.
// accessKeys kept to be used internally.
accessKeyID string
@@ -130,7 +129,6 @@ func initWeb(conf cloudServerConfig) *webAPI {
FSPath: conf.Path,
AccessLog: conf.AccessLog,
Client: client,
inSecure: inSecure,
apiAddress: conf.Address,
accessKeyID: conf.AccessKeyID,
secretAccessKey: conf.SecretAccessKey,