fix 修复调用百度接口提示缺少请求头 #IAR2RU

This commit is contained in:
bleachtred 2024-10-23 11:23:40 +08:00
parent 8aca0fd957
commit 8a0dd4bc3d

View File

@ -98,6 +98,7 @@ public class BaiduUtils {
Map<String, String> headers = new HashMap<>(2); Map<String, String> headers = new HashMap<>(2);
headers.put(Constant.AUTHORIZATION, authorization); headers.put(Constant.AUTHORIZATION, authorization);
headers.put("host", config.getHost()); headers.put("host", config.getHost());
headers.put("x-bce-date", SmsDateUtils.normDateGmt8(new Date()));
return headers; return headers;
} }