1
This commit is contained in:
@@ -104,6 +104,7 @@ func (a *API) FileUpload(filePath, imgType, sourcechnl, isOcr string) (*UploadIm
|
||||
}
|
||||
|
||||
// 设置 Content-Type 头
|
||||
a.CheckToken()
|
||||
req.Header.Set("Content-Type", writer.FormDataContentType())
|
||||
req.Header.Set("Authorization", fmt.Sprintf("bearer %s", a.incomingToken))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user