Skip to content

Commit aa69ce4

Browse files
committed
URLStream
1 parent 6d6de36 commit aa69ce4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStream.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#ifdef USE_URL_ARDUINO
55

66
#if defined(ESP32)
7-
#include <Client.h>
8-
#include <WiFi.h>
9-
#include <WiFiClientSecure.h>
10-
#include <esp_wifi.h>
7+
# include <Client.h>
8+
# include <WiFi.h>
9+
# include <WiFiClientSecure.h>
10+
# include <esp_wifi.h>
1111
#endif
1212

1313
#include "AbstractURLStream.h"
@@ -305,8 +305,8 @@ class URLStream : public AbstractURLStream {
305305
return false;
306306
}
307307
}
308-
309308
#endif
309+
310310
// request.reply().setAutoCreateLines(false);
311311
if (acceptMime != nullptr) {
312312
request.setAcceptMime(acceptMime);
@@ -332,9 +332,10 @@ class URLStream : public AbstractURLStream {
332332
if (!is_power_save) {
333333
esp_wifi_set_ps(WIFI_PS_NONE);
334334
}
335+
#endif
336+
335337
return true;
336338
}
337-
#endif
338339

339340
/// Process the Http request and handle redirects
340341
template <typename T>

0 commit comments

Comments
 (0)