mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:06:53 +00:00
Remove deprecated X-Signal-Key header
This commit is contained in:
1 parent
065809e34f
commit
6d87b24ba3
2 files changed
+1
-4
No files matched your search
@@ -32,8 +32,6 @@ public final class HeaderUtils {
|
||||
|
||||
public static final String X_SIGNAL_AGENT = "X-Signal-Agent";
|
||||
|
||||
public static final String X_SIGNAL_KEY = "X-Signal-Key";
|
||||
|
||||
public static final String TIMESTAMP_HEADER = "X-Signal-Timestamp";
|
||||
|
||||
public static final String UNIDENTIFIED_ACCESS_KEY = "Unidentified-Access-Key";
|
||||
|
||||
+1
-2
@@ -247,9 +247,8 @@ public class WebSocketConnection implements DisconnectionRequestListener {
|
||||
|
||||
final Timer.Sample sample = Timer.start();
|
||||
|
||||
// X-Signal-Key: false must be sent until Android stops assuming it missing means true
|
||||
return client.sendRequest("PUT", "/api/v1/message",
|
||||
List.of(HeaderUtils.X_SIGNAL_KEY + ": false", HeaderUtils.getTimestampHeader()), body)
|
||||
List.of(HeaderUtils.getTimestampHeader()), body)
|
||||
.whenComplete((ignored, throwable) -> {
|
||||
if (throwable != null) {
|
||||
sendFailuresCounter.increment();
|
||||
|
||||
Reference in new issue
Block a user