We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef96b1f commit 7e369a8Copy full SHA for 7e369a8
src/AudioHttp/HttpHeader.h
@@ -6,6 +6,9 @@
6
#include "AudioHttp/HttpLineReader.h"
7
#include "AudioHttp/Url.h"
8
#include "AudioHttp/HttpTypes.h"
9
+
10
+#define MAX_HTTP_REQ_LEN 300
11
12
#if defined(ARDUINO) || defined(IS_DESKTOP)
13
#include "Client.h"
14
#endif
@@ -368,8 +371,8 @@ class HttpRequestHeader : public HttpHeader {
368
371
// action path protocol
369
372
void write1stLine(Client &out){
370
373
LOGI("HttpRequestHeader::write1stLine");
- char msg[200];
- Str msg_str(msg,200);
374
+ char msg[MAX_HTTP_REQ_LEN];
375
+ Str msg_str(msg, MAX_HTTP_REQ_LEN);
376
377
const char* method_str = methods[this->method_id];
378
msg_str = method_str;
0 commit comments