Fix bug with federated delivery receipts.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-07-27 22:46:18 -07:00
parent f2c8699823
commit 3afaa5c1e6
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ public class FederatedClient {
Response response = client.target(peer.getUrl())
.path(String.format(RECEIPT_PATH, source, sourceDeviceId, destination, messageId))
.request()
.put(Entity.json(null));
.property(ClientProperties.SUPPRESS_HTTP_COMPLIANCE_VALIDATION, true)
.put(null);
if (response.getStatus() != 200 && response.getStatus() != 204) {
throw new WebApplicationException(response);