Unverified Commit ea36183d authored by Wolle's avatar Wolle Committed by GitHub

Issue with User-Agent setting in HTTP-Request header #363

parent f47df06c
......@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 2.0.6a
* Updated on: Aug 27.2022
* Version 2.0.6b
* Updated on: Sep 01.2022
* Author: Wolle (schreibfaul1)
*
*/
......@@ -450,7 +450,7 @@ bool Audio::connecttohost(const char* host, const char* user, const char* pwd) {
strcat(rqh, authorization);
strcat(rqh, "\r\n");
strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n");
strcat(rqh, "User-Agent: Mozilla/5.0\r\n");
// strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); #363
strcat(rqh, "Connection: keep-alive\r\n\r\n");
if(ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR == 0 && ESP_ARDUINO_VERSION_PATCH >= 3){
......@@ -563,7 +563,7 @@ bool Audio::httpPrint(const char* host) {
strcat(rqh, hostwoext);
strcat(rqh, "\r\n");
strcat(rqh, "Accept-Encoding: identity;q=1,*;q=0\r\n");
strcat(rqh, "User-Agent: Mozilla/5.0\r\n");
// strcat(rqh, "User-Agent: Mozilla/5.0\r\n"); #363
strcat(rqh, "Connection: keep-alive\r\n\r\n");
if(m_f_ssl){ _client = static_cast<WiFiClient*>(&clientsecure); if(port == 80) port = 443;}
......
......@@ -2,7 +2,7 @@
* Audio.h
*
* Created on: Oct 28,2018
* Updated on: Aug 27,2022
* Updated on: Sep 01,2022
* Author: Wolle (schreibfaul1)
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment