Skip to content

Commit 7e369a8

Browse files
committed
Increase http req len
1 parent ef96b1f commit 7e369a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/AudioHttp/HttpHeader.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#include "AudioHttp/HttpLineReader.h"
77
#include "AudioHttp/Url.h"
88
#include "AudioHttp/HttpTypes.h"
9+
10+
#define MAX_HTTP_REQ_LEN 300
11+
912
#if defined(ARDUINO) || defined(IS_DESKTOP)
1013
#include "Client.h"
1114
#endif
@@ -368,8 +371,8 @@ class HttpRequestHeader : public HttpHeader {
368371
// action path protocol
369372
void write1stLine(Client &out){
370373
LOGI("HttpRequestHeader::write1stLine");
371-
char msg[200];
372-
Str msg_str(msg,200);
374+
char msg[MAX_HTTP_REQ_LEN];
375+
Str msg_str(msg, MAX_HTTP_REQ_LEN);
373376

374377
const char* method_str = methods[this->method_id];
375378
msg_str = method_str;

0 commit comments

Comments
 (0)