Skip to content

Commit 72ed29a

Browse files
Chris Mullinsigrr
Chris Mullins
authored andcommitted
allow for overridable value for HTTP_UPLOAD_BUFLEN
1 parent 0c66c8a commit 72ed29a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ enum HTTPUploadStatus { UPLOAD_FILE_START, UPLOAD_FILE_WRITE, UPLOAD_FILE_END,
3333
enum HTTPClientStatus { HC_NONE, HC_WAIT_READ, HC_WAIT_CLOSE };
3434

3535
#define HTTP_DOWNLOAD_UNIT_SIZE 1460
36+
37+
#ifndef HTTP_UPLOAD_BUFLEN
3638
#define HTTP_UPLOAD_BUFLEN 2048
39+
#endif
40+
3741
#define HTTP_MAX_DATA_WAIT 1000 //ms to wait for the client to send the request
3842
#define HTTP_MAX_POST_WAIT 1000 //ms to wait for POST data to arrive
3943
#define HTTP_MAX_SEND_WAIT 5000 //ms to wait for data chunk to be ACKed

0 commit comments

Comments
 (0)