Skip to content

Commit

Permalink
URLStream
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Dec 4, 2024
1 parent 6d6de36 commit aa69ce4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/AudioTools/CoreAudio/AudioHttp/URLStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#ifdef USE_URL_ARDUINO

#if defined(ESP32)
#include <Client.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <esp_wifi.h>
# include <Client.h>
# include <WiFi.h>
# include <WiFiClientSecure.h>
# include <esp_wifi.h>
#endif

#include "AbstractURLStream.h"
Expand Down Expand Up @@ -305,8 +305,8 @@ class URLStream : public AbstractURLStream {
return false;
}
}

#endif

// request.reply().setAutoCreateLines(false);
if (acceptMime != nullptr) {
request.setAcceptMime(acceptMime);
Expand All @@ -332,9 +332,10 @@ class URLStream : public AbstractURLStream {
if (!is_power_save) {
esp_wifi_set_ps(WIFI_PS_NONE);
}
#endif

return true;
}
#endif

/// Process the Http request and handle redirects
template <typename T>
Expand Down

0 comments on commit aa69ce4

Please sign in to comment.