mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
Bug 4963: Using a proper mime type for sending operations from replica
to master. Now that shiro is active for ReplicationServlet, the unspecified content type caused exceptions while parsing the content.
This commit is contained in:
+1
@@ -46,6 +46,7 @@ public interface OperationsToMasterSender<S, O extends OperationWithResult<S, ?>
|
||||
addOperationSentToMasterForReplication(operationWithResultWithIdWrapper);
|
||||
URL url = masterDescriptor.getSendReplicaInitiatedOperationToMasterURL(this.getId().toString());
|
||||
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
|
||||
connection.setRequestProperty("Content-Type", "application/octet-stream");
|
||||
String optionalBearerToken = masterDescriptor.getBearerToken();
|
||||
if (optionalBearerToken != null && !optionalBearerToken.isEmpty()) {
|
||||
connection.setRequestProperty("Authorization", "Bearer " + optionalBearerToken);
|
||||
|
||||
Reference in New Issue
Block a user