Skip to content

Commit f381ad6

Browse files
author
YangSen-qn
committed
fix: form upload, Specified domain name not effective
1 parent fe3e8f2 commit f381ad6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storagev2/uploader/upload_manager.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ func NewUploadManager(options *UploadManagerOptions) *UploadManager {
101101
func (uploadManager *UploadManager) UploadDirectory(ctx context.Context, directoryPath string, directoryOptions *DirectoryOptions) error {
102102
if directoryOptions == nil {
103103
directoryOptions = &DirectoryOptions{}
104+
} else {
105+
tmp := *directoryOptions
106+
directoryOptions = &tmp
104107
}
108+
105109
objectConcurrency := directoryOptions.ObjectConcurrency
106110
if objectConcurrency == 0 {
107111
objectConcurrency = 4

0 commit comments

Comments
 (0)