switched to new PlusROMs header scheme

This commit is contained in:
Thomas Jentzsch 2021-10-17 19:33:04 +02:00
parent e2b8e0f2a9
commit bd2bddbe15
1 changed files with 7 additions and 2 deletions

View File

@ -81,10 +81,15 @@ class PlusROMRequest {
void execute() {
myState = State::pending;
ostringstream content;
content << "agent=Stella; "
<< "ver=" << STELLA_VERSION << "; "
<< "id=WE" << myId.id << "; "
<< "nick=" << myId.nick;
httplib::Client client(myDestination.host);
httplib::Headers headers = {
{"PlusStore-ID", myId.nick + " WE" + myId.id},
{"User-Agent", string("Stella ") + STELLA_VERSION}
{"PlusROM-Info", content.str()}
};
client.set_connection_timeout(milliseconds(CONNECTION_TIMEOUT_MSEC));