|
11 | 11 | |
12 | 12 | Licensed under MIT license |
13 | 13 | |
14 | | - Version: 1.4.0 |
| 14 | + Version: 1.4.1 |
15 | 15 |
|
16 | 16 | Version Modified By Date Comments |
17 | 17 | ------- ----------- ---------- ----------- |
|
24 | 24 | 1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7 |
25 | 25 | 1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches |
26 | 26 | 1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug |
| 27 | + 1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64 |
27 | 28 | *************************************************************************************************************************************/ |
28 | 29 |
|
29 | 30 | #pragma once |
@@ -412,7 +413,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c |
412 | 413 | EWString aResponse = fromString(response); |
413 | 414 |
|
414 | 415 | aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " "; |
415 | | - aResponse += code; |
| 416 | + aResponse += fromString(String(code)); |
416 | 417 | aResponse += " "; |
417 | 418 | aResponse += fromString(_responseCodeToString(code)); |
418 | 419 | aResponse += RETURN_NEWLINE; |
@@ -456,7 +457,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c |
456 | 457 | void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength) |
457 | 458 | { |
458 | 459 | response = "HTTP/1." + fromString(String(_currentVersion)) + " "; |
459 | | - response += code; |
| 460 | + response += fromString(String(code)); |
460 | 461 | response += " "; |
461 | 462 | response += fromString(_responseCodeToString(code)); |
462 | 463 | response += RETURN_NEWLINE; |
|
0 commit comments