mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 19:36:45 +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
|
// pack the key, null terminated
|
||||||
strcpy((char*) getPacket + numPacketBytes, key);
|
strcpy((char*) getPacket + numPacketBytes, key);
|
||||||
numPacketBytes += strlen(key);
|
int numKeyBytes = strlen(key);
|
||||||
getPacket[numPacketBytes++] = '\0';
|
|
||||||
|
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
|
// 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));
|
_unmatchedPackets.insert(std::pair<unsigned char*, int>(getPacket, numPacketBytes));
|
||||||
|
|
|
@ -32,7 +32,7 @@ private:
|
||||||
|
|
||||||
namespace DataServerKey {
|
namespace DataServerKey {
|
||||||
const char FaceMeshURL[] = "mesh";
|
const char FaceMeshURL[] = "mesh";
|
||||||
const char UUID[] = "uuid";
|
const char UUID[] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* defined(__hifi__DataServerClient__) */
|
#endif /* defined(__hifi__DataServerClient__) */
|
||||||
|
|
Loading…
Reference in a new issue