[HTML5] Use 64KiB chunk size in JS HTTPClient.

For consistency with the native one, and the documentation.

(cherry picked from commit 6243835619)
This commit is contained in:
Fabio Alessandrelli 2021-05-06 14:00:52 +02:00 committed by Rémi Verschelde
parent 9b01143380
commit 23ef985bb8
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -34,7 +34,8 @@ Error make_request(Method p_method, const String &p_url, const Vector<String> &p
static void _parse_headers(int p_len, const char **p_headers, void *p_ref); static void _parse_headers(int p_len, const char **p_headers, void *p_ref);
int js_id = 0; int js_id = 0;
int read_limit = 4096; // 64 KiB by default (favors fast download speeds at the cost of memory usage).
int read_limit = 65536;
Status status = STATUS_DISCONNECTED; Status status = STATUS_DISCONNECTED;
String host; String host;