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
This commit is contained in:
John Knox
2018-09-06 09:46:23 -07:00
committed by Facebook Github Bot
parent d16fd8cfae
commit 869c785c71

View File

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