mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-04-13 20:11:32 +00:00
5.0版本 发布 新增 cadviewer转换方法
This commit is contained in:
@@ -197,9 +197,10 @@ public class OnlinePreviewController {
|
||||
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
restTemplate.setRequestFactory(factory);
|
||||
String finalUrlPath = urlPath;
|
||||
RequestCallback requestCallback = request -> {
|
||||
request.getHeaders().setAccept(Arrays.asList(MediaType.APPLICATION_OCTET_STREAM, MediaType.ALL));
|
||||
WebUtils.applyBasicAuthHeaders(request.getHeaders(), fileAttribute);
|
||||
WebUtils.applyBasicAuthHeaders(request.getHeaders(), finalUrlPath);
|
||||
String proxyAuthorization = fileAttribute.getKkProxyAuthorization();
|
||||
if(StringUtils.hasText(proxyAuthorization)){
|
||||
Map<String, String> proxyAuthorizationMap = mapper.readValue(
|
||||
|
||||
Reference in New Issue
Block a user