Skip to content

Commit 894b679

Browse files
committed
ADD: Add client to auth request
1 parent 23af393 commit 894b679

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/live_blocking.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
#include "databento/dbn_decoder.hpp"
1414
#include "databento/detail/tcp_client.hpp"
1515
#include "databento/exceptions.hpp" // LiveApiError
16-
#include "databento/log.hpp"
17-
#include "databento/record.hpp" // Record
18-
#include "databento/symbology.hpp" // JoinSymbolStrings
16+
#include "databento/log.hpp" // ILogReceiver
17+
#include "databento/record.hpp" // Record
18+
#include "databento/symbology.hpp" // JoinSymbolStrings
19+
#include "databento/version.hpp" // DATABENTO_VERSION
1920

2021
using databento::LiveBlocking;
2122

@@ -237,7 +238,8 @@ std::string LiveBlocking::GenerateCramReply(const std::string& challenge_key) {
237238
std::string LiveBlocking::EncodeAuthReq(const std::string& auth) {
238239
std::ostringstream reply_stream;
239240
reply_stream << "auth=" << auth << "|dataset=" << dataset_ << "|encoding=dbn|"
240-
<< "ts_out=" << send_ts_out_ << '\n';
241+
<< "ts_out=" << send_ts_out_
242+
<< "|client=C++ " DATABENTO_VERSION "\n";
241243
return reply_stream.str();
242244
}
243245

0 commit comments

Comments
 (0)