1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

allow downgrade to HTTP 1.0

use HTTP/1.0 for update since the update handler not support any transfer Encoding
This commit is contained in:
Markus Sattler
2015-12-31 14:02:00 +01:00
parent b828f34348
commit ef748e369a
3 changed files with 30 additions and 2 deletions

View File

@ -137,6 +137,8 @@ class HTTPClient {
void setAuthorization(const char * auth);
void setTimeout(uint16_t timeout);
void useHTTP10(bool usehttp10 = true);
/// request handling
int GET();
int POST(uint8_t * payload, size_t size);
@ -180,6 +182,7 @@ class HTTPClient {
uint16_t _port;
bool _reuse;
uint16_t _tcpTimeout;
bool _useHTTP10;
String _url;
bool _https;