Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 6fbf2e1

Browse files
authored
v1.4.1 to fix wrong http status header
### Releases v1.4.1 1. Fix wrong http status header bug. Check [fix for wrong http status header #42](khoih-prog/EthernetWebServer#42) 2. Fix authenticate issue caused by libb64
1 parent e484979 commit 6fbf2e1

22 files changed

+82
-87
lines changed

src/EthernetHttpClient_SSL_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
1010
11-
Version: 1.4.0
11+
Version: 1.4.1
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
@@ -21,6 +21,7 @@
2121
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2222
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2323
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
24+
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2425
*************************************************************************************************************************************/
2526

2627
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL_STM32-impl.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once
@@ -412,7 +413,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
412413
EWString aResponse = fromString(response);
413414

414415
aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " ";
415-
aResponse += code;
416+
aResponse += fromString(String(code));
416417
aResponse += " ";
417418
aResponse += fromString(_responseCodeToString(code));
418419
aResponse += RETURN_NEWLINE;
@@ -456,7 +457,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
456457
void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength)
457458
{
458459
response = "HTTP/1." + fromString(String(_currentVersion)) + " ";
459-
response += code;
460+
response += fromString(String(code));
460461
response += " ";
461462
response += fromString(_responseCodeToString(code));
462463
response += RETURN_NEWLINE;

src/EthernetWebServer_SSL_STM32.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once
@@ -34,13 +35,13 @@
3435
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3536
#endif
3637

37-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.0"
38+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.1"
3839

3940
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MAJOR 1
4041
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MINOR 4
41-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 0
42+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 1
4243

43-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004000
44+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004001
4445

4546
#define USE_NEW_WEBSERVER_VERSION true
4647

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_HttpClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
// (c) Copyright Arduino. 2016

src/Parsing_SSL_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once

src/detail/Debug_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once

src/detail/RequestHandler_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once

src/detail/RequestHandlersImpl_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#pragma once

src/detail/mimetable.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.0
14+
Version: 1.4.1
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
@@ -24,6 +24,7 @@
2424
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2525
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2626
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
2728
*************************************************************************************************************************************/
2829

2930
#ifndef __MIMETABLE_H__

src/inner.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Licensed under MIT license
1414
15-
Version: 1.4.0
15+
Version: 1.4.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2626
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
28+
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2829
*************************************************************************************************************************************/
2930

3031
#include "SSLClient/inner.h"

src/libb64/base64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Licensed under MIT license
1414
15-
Version: 1.4.0
15+
Version: 1.4.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2626
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
28+
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2829
*************************************************************************************************************************************/
2930

3031
#include "base64.h"

src/libb64/base64.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Licensed under MIT license
1414
15-
Version: 1.4.0
15+
Version: 1.4.1
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
2626
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
28+
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2829
*************************************************************************************************************************************/
2930

3031
#pragma once

0 commit comments

Comments
 (0)