mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-24 23:18:09 +01:00
Try to make JerseyClient put() include a content-length of 0.
// FREEBIE
This commit is contained in:
@@ -192,7 +192,7 @@ public class FederatedClient {
|
||||
.path(String.format(RECEIPT_PATH, source, sourceDeviceId, destination, messageId))
|
||||
.request()
|
||||
.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true)
|
||||
.put(null);
|
||||
.put(Entity.entity("", MediaType.APPLICATION_JSON_TYPE));
|
||||
|
||||
if (response.getStatus() != 200 && response.getStatus() != 204) {
|
||||
throw new WebApplicationException(response);
|
||||
|
||||
Reference in New Issue
Block a user