You've already forked VptPassiveAdapter
上传设置header
This commit is contained in:
@ -37,6 +37,7 @@ func OssUpload(url, filePath string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
req.Header.Set("Content-Type", "video/mp4")
|
||||
req.Header.Set("Content-Length", fmt.Sprintf("%d", len(fileBytes)))
|
||||
client := &http.Client{}
|
||||
resp, err := client.Do(req)
|
||||
|
Reference in New Issue
Block a user