change: remove AGW body verification

This commit is contained in:
lilong.129
2023-05-11 16:41:24 +08:00
parent 56e065c10b
commit b6373fd1a1
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Release History # Release History
## v4.3.4 (2023-05-10) ## v4.3.4 (2023-05-11)
**go version** **go version**
+1 -1
View File
@@ -1 +1 @@
v4.3.4-beta-202305101622 v4.3.4-beta-202305111640
+4 -1
View File
@@ -178,8 +178,11 @@ func (s *veDEMOCRService) getOCRResult(imageBuf *bytes.Buffer) (
return return
} }
token := builtin.Sign("auth-v2", env.VEDEM_OCR_AK, env.VEDEM_OCR_SK, bodyBuf.Bytes()) signToken := "UNSIGNED-PAYLOAD"
token := builtin.Sign("auth-v2", env.VEDEM_OCR_AK, env.VEDEM_OCR_SK, []byte(signToken))
req.Header.Add("Agw-Auth", token) req.Header.Add("Agw-Auth", token)
req.Header.Add("Agw-Auth-Content", signToken)
req.Header.Add("Content-Type", bodyWriter.FormDataContentType()) req.Header.Add("Content-Type", bodyWriter.FormDataContentType())
var resp *http.Response var resp *http.Response