|
|
@@ -236,7 +236,6 @@ public class SourceHandler { |
|
|
|
.setHeader(MessageConstants.TASK_ID, task.getId()) |
|
|
|
.setHeader(MessageConstants.TASK_NAME, task.getName()) |
|
|
|
.setHeader(MessageConstants.SEED_URL, httpRes.getRequestParams().getUrl()) |
|
|
|
.setHeader(MessageConstants.SEED_URL, httpRes.getRequestParams().getUrl()) |
|
|
|
.setHeader(MessageConstants.OTHER_CACHE_KEY_SET, otherCacheKeySet) |
|
|
|
.build(); |
|
|
|
resultMap.put(topic, nextTaskMessage); |
|
|
@@ -328,7 +327,7 @@ public class SourceHandler { |
|
|
|
|
|
|
|
|
|
|
|
private void preHandleSignature(HttpRequestParams requestParams) { |
|
|
|
HttpRequestParams.RequestSignatureConfig signatureConfig = requestParams.getSignature(); |
|
|
|
HttpRequestParams.RequestSignatureConfig signatureConfig = requestParams.getSignatureConfig(); |
|
|
|
if (ObjectUtils.isEmpty(signatureConfig)) { |
|
|
|
return; |
|
|
|
} |
|
|
@@ -340,7 +339,7 @@ public class SourceHandler { |
|
|
|
String signature = signatureService.signatureByPriKey(signatureContext); |
|
|
|
// 优化 |
|
|
|
if (SignatureEnumGroup.SignatureLocation.header.equals(signatureConfig.getSignatureLocation())) { |
|
|
|
requestParams.getHeaders().put(signatureConfig.getSignatureFile(), signature); |
|
|
|
requestParams.getHeaders().put(signatureConfig.getSignatureField(), signature); |
|
|
|
} |
|
|
|
} catch (GeneralSecurityException e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|