mirror of https://github.com/stella-emu/stella.git
switched to new PlusROMs header scheme
This commit is contained in:
parent
a0338f92a8
commit
3394584aa8
|
@ -81,10 +81,15 @@ class PlusROMRequest {
|
||||||
void execute() {
|
void execute() {
|
||||||
myState = State::pending;
|
myState = State::pending;
|
||||||
|
|
||||||
|
ostringstream content;
|
||||||
|
content << "agent=Stella; "
|
||||||
|
<< "ver=" << STELLA_VERSION << "; "
|
||||||
|
<< "id=WE" << myId.id << "; "
|
||||||
|
<< "nick=" << myId.nick;
|
||||||
|
|
||||||
httplib::Client client(myDestination.host);
|
httplib::Client client(myDestination.host);
|
||||||
httplib::Headers headers = {
|
httplib::Headers headers = {
|
||||||
{"PlusStore-ID", myId.nick + " WE" + myId.id},
|
{"PlusROM-Info", content.str()}
|
||||||
{"User-Agent", string("Stella ") + STELLA_VERSION}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
client.set_connection_timeout(milliseconds(CONNECTION_TIMEOUT_MSEC));
|
client.set_connection_timeout(milliseconds(CONNECTION_TIMEOUT_MSEC));
|
||||||
|
|
Loading…
Reference in New Issue