1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

ESP8266HTTPClient: fix duplicate Content-Length headers (#1902)

This commit is contained in:
Ivan Grokhotkov
2016-06-03 16:11:44 +08:00
parent d1fc7002c1
commit dd81336b79
5 changed files with 31 additions and 59 deletions

View File

@ -160,7 +160,7 @@ public:
int sendRequest(const char * type, uint8_t * payload = NULL, size_t size = 0);
int sendRequest(const char * type, Stream * stream, size_t size = 0);
void addHeader(const String& name, const String& value, bool first = false);
void addHeader(const String& name, const String& value, bool first = false, bool replace = true);
/// Response handling
void collectHeaders(const char* headerKeys[], const size_t headerKeysCount);