From 869c785c7128b55450a26694eb63f3c254ae9b1d Mon Sep 17 00:00:00 2001 From: John Knox Date: Thu, 6 Sep 2018 09:46:23 -0700 Subject: [PATCH] Store empty connection_config in legacy CSR requests Summary: Versions of flipper from before 7th August 2018 don't return any response, so we don't store any connection_config.json file. To keep the functionality the same as with up-to-date app versions, when this happens, store an empty config file ("{}"). Reviewed By: danielbuechele Differential Revision: D9682885 fbshipit-source-id: fd580f6bba6b6b20135aa2c076be10e1eea0f8bc --- xplat/Sonar/SonarWebSocketImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xplat/Sonar/SonarWebSocketImpl.cpp b/xplat/Sonar/SonarWebSocketImpl.cpp index aad82a819..0cc6d5433 100644 --- a/xplat/Sonar/SonarWebSocketImpl.cpp +++ b/xplat/Sonar/SonarWebSocketImpl.cpp @@ -291,6 +291,8 @@ void SonarWebSocketImpl::sendLegacyCertificateRequest(folly::dynamic message) { ->fireAndForget(rsocket::Payload(folly::toJson(message))) ->subscribe([this, sendingRequest]() { sendingRequest->complete(); + folly::dynamic config = folly::dynamic::object(); + contextStore_->storeConnectionConfig(config); client_ = nullptr; }); }