0
0
mirror of https://github.com/signalapp/Signal-Server.git synced 2024-09-20 12:02:18 +02:00

Try to make JerseyClient put() include a content-length of 0.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-28 15:23:21 -07:00
parent 3327bf4788
commit 001c81f797

View File

@ -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);