mirror of
https://github.com/pgsty/minio.git
synced 2026-08-06 07:41:16 +03:00
api/PostPolicy: Allow location header fully qualified URL (#4926)
req.Host is used to construct the final object location. Fixes #4910
This commit is contained in:
committed by
Dee Koder
parent
c3ff402fcb
commit
4cadb33da2
@@ -101,12 +101,7 @@ func newNotificationEvent(event eventData) NotificationEvent {
|
||||
host = localIP4.ToSlice()[0]
|
||||
}
|
||||
|
||||
scheme := httpScheme
|
||||
if globalIsSSL {
|
||||
scheme = httpsScheme
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s://%s:%s", scheme, host, globalMinioPort)
|
||||
return fmt.Sprintf("%s://%s:%s", getURLScheme(globalIsSSL), host, globalMinioPort)
|
||||
}
|
||||
|
||||
// Fetch the region.
|
||||
|
||||
Reference in New Issue
Block a user