feat(esp32): add user-agent string to requests to api aggregator

This commit is contained in:
s3lph 2025-02-23 00:57:33 +01:00
parent c5e76aca34
commit 21e260e7cd
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

View file

@ -282,6 +282,7 @@ bool updateMap() {
client.println(" HTTP/1.0");
client.print("Host: ");
client.println(SPACEAPI_HOST);
client.println("User-Agent: spaceapimap (https://git.kabelsalat.ch/s3lph/spaceapi-led-map/)");
client.println("Connection: close");
client.println();
// Read until empty line (HTTP header/body separator)