- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getObjectLocation (0.1 sec)
-
cmd/api-response.go
// returns "https" if the tls boolean is true, "http" otherwise. func getURLScheme(tls bool) string { if tls { return httpsScheme } return httpScheme } // getObjectLocation gets the fully qualified URL of an object. func getObjectLocation(r *http.Request, domains []string, bucket, object string) string { // unit tests do not have host set. if r.Host == "" { return path.Clean(r.URL.Path) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 19:27:06 UTC 2024 - 33.4K bytes - Viewed (0) -
cmd/object-multipart-handlers.go
actualSize, _ := objInfo.GetActualSize() defer globalReplicationStats.Load().UpdateReplicaStat(bucket, actualSize) } // Get object location. location := getObjectLocation(r, globalDomainNames, bucket, object) // Generate complete multipart response. response := generateCompleteMultipartUploadResponse(bucket, object, location, objInfo, r.Header)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Aug 31 18:25:48 UTC 2024 - 39.2K bytes - Viewed (0) -
cmd/bucket-handlers.go
// Set the relevant version ID as part of the response header. if objInfo.VersionID != "" && objInfo.VersionID != nullVersionID { w.Header()[xhttp.AmzVersionID] = []string{objInfo.VersionID} } if obj := getObjectLocation(r, globalDomainNames, bucket, object); obj != "" { w.Header().Set(xhttp.Location, obj) } // Notify object created event. defer sendEvent(eventArgs{ EventName: event.ObjectCreatedPost,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 63.4K bytes - Viewed (0)