mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 22:07:47 +02:00
send an empty key when making a UUID request
This commit is contained in:
parent
85edb93710
commit
ae59ce22b7
2 changed files with 7 additions and 3 deletions
|
@ -78,8 +78,12 @@ void DataServerClient::getValueForKeyAndUserString(const char* key, QString& use
|
|||
|
||||
// pack the key, null terminated
|
||||
strcpy((char*) getPacket + numPacketBytes, key);
|
||||
numPacketBytes += strlen(key);
|
||||
getPacket[numPacketBytes++] = '\0';
|
||||
int numKeyBytes = strlen(key);
|
||||
|
||||
if (numKeyBytes > 0) {
|
||||
numPacketBytes += numKeyBytes;
|
||||
getPacket[numPacketBytes++] = '\0';
|
||||
}
|
||||
|
||||
// add the getPacket to our vector of uncofirmed packets, will be deleted once we get a response from the nameserver
|
||||
_unmatchedPackets.insert(std::pair<unsigned char*, int>(getPacket, numPacketBytes));
|
||||
|
|
|
@ -32,7 +32,7 @@ private:
|
|||
|
||||
namespace DataServerKey {
|
||||
const char FaceMeshURL[] = "mesh";
|
||||
const char UUID[] = "uuid";
|
||||
const char UUID[] = "";
|
||||
}
|
||||
|
||||
#endif /* defined(__hifi__DataServerClient__) */
|
||||
|
|
Loading…
Reference in a new issue