mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.60 to 7.0.61 (#2041)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
15
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
15
vendor/github.com/minio/minio-go/v7/api.go
generated
vendored
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* MinIO Go Library for Amazon S3 Compatible Cloud Storage
|
||||
* Copyright 2015-2018 MinIO, Inc.
|
||||
* Copyright 2015-2023 MinIO, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@ -29,6 +29,7 @@ import (
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/cookiejar"
|
||||
"net/http/httptrace"
|
||||
"net/http/httputil"
|
||||
"net/url"
|
||||
"os"
|
||||
@ -69,6 +70,7 @@ type Client struct {
|
||||
|
||||
// Needs allocation.
|
||||
httpClient *http.Client
|
||||
httpTrace *httptrace.ClientTrace
|
||||
bucketLocCache *bucketLocationCache
|
||||
|
||||
// Advanced functionality.
|
||||
@ -103,6 +105,7 @@ type Options struct {
|
||||
Creds *credentials.Credentials
|
||||
Secure bool
|
||||
Transport http.RoundTripper
|
||||
Trace *httptrace.ClientTrace
|
||||
Region string
|
||||
BucketLookup BucketLookupType
|
||||
|
||||
@ -124,7 +127,7 @@ type Options struct {
|
||||
// Global constants.
|
||||
const (
|
||||
libraryName = "minio-go"
|
||||
libraryVersion = "v7.0.60"
|
||||
libraryVersion = "v7.0.61"
|
||||
)
|
||||
|
||||
// User Agent should always following the below style.
|
||||
@ -229,6 +232,8 @@ func privateNew(endpoint string, opts *Options) (*Client, error) {
|
||||
}
|
||||
}
|
||||
|
||||
clnt.httpTrace = opts.Trace
|
||||
|
||||
// Instantiate http client and bucket location cache.
|
||||
clnt.httpClient = &http.Client{
|
||||
Jar: jar,
|
||||
@ -278,7 +283,7 @@ func privateNew(endpoint string, opts *Options) (*Client, error) {
|
||||
}
|
||||
|
||||
// SetAppInfo - add application details to user agent.
|
||||
func (c *Client) SetAppInfo(appName string, appVersion string) {
|
||||
func (c *Client) SetAppInfo(appName, appVersion string) {
|
||||
// if app name and version not set, we do not set a new user agent.
|
||||
if appName != "" && appVersion != "" {
|
||||
c.appInfo.appName = appName
|
||||
@ -771,6 +776,10 @@ func (c *Client) newRequest(ctx context.Context, method string, metadata request
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if c.httpTrace != nil {
|
||||
ctx = httptrace.WithClientTrace(ctx, c.httpTrace)
|
||||
}
|
||||
|
||||
// Initialize a new HTTP request for the method.
|
||||
req, err = http.NewRequestWithContext(ctx, method, targetURL.String(), nil)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user