Skip to content

Commit

Permalink
Update prepare.go
Browse files Browse the repository at this point in the history
  • Loading branch information
qjfoidnh committed Oct 11, 2023
1 parent 86a819b commit caa18a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion baidupcs/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ func (pcs *BaiduPCS) prepareRapidUpload(targetPath, contentMD5, sliceMD5, crc32
}
baiduPCSVerbose.Infof("%s URL: %s, Post: %v\n", OperationRapidUpload, pcsURL, post)

dataReadCloser, pcsError = pcs.sendReqReturnReadCloser(reqTypePan, OperationRapidUpload, http.MethodPost, pcsURL.String(), post, nil)
dataReadCloser, pcsError = pcs.sendReqReturnReadCloser(reqTypePan, OperationRapidUpload, http.MethodPost, pcsURL.String(), post, map[string]string{
"Content-Type": "application/x-www-form-urlencoded",
})
return
}

Expand Down

0 comments on commit caa18a3

Please sign in to comment.