File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/AudioTools/CoreAudio/AudioHttp Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ class URLStreamESP32 : public AbstractURLStream {
266
266
}
267
267
// / provides access to the HttpRequest
268
268
virtual HttpRequest& httpRequest () { return request; }
269
+
269
270
// / Writes are not supported
270
271
int availableForWrite () override { return 1024 ; }
271
272
@@ -299,12 +300,15 @@ class URLStreamESP32 : public AbstractURLStream {
299
300
request.header ().put (header, value);
300
301
}
301
302
303
+ // / Defines the read buffer size
302
304
void setBufferSize (int size) { buffer_size = size; }
303
305
304
306
// / Define the Root PEM Certificate for SSL
305
307
void setCACert (const uint8_t * cert, int len) {
306
308
pem_cert_len = len;
307
309
pem_cert = cert;
310
+ // certificate must end with traling null
311
+ assert (cert[len-1 ]==0 );
308
312
}
309
313
310
314
// / Method compatible with Arduino WiFiClientSecure API
You can’t perform that action at this time.
0 commit comments