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

Commit

Permalink
v1.4.1 to fix wrong http status header
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
khoih-prog authored Dec 28, 2021
1 parent e484979 commit 6fbf2e1
Show file tree
Hide file tree
Showing 22 changed files with 82 additions and 87 deletions.
3 changes: 2 additions & 1 deletion src/EthernetHttpClient_SSL_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -21,6 +21,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
7 changes: 4 additions & 3 deletions src/EthernetWebServer_SSL_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

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

aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " ";
aResponse += code;
aResponse += fromString(String(code));
aResponse += " ";
aResponse += fromString(_responseCodeToString(code));
aResponse += RETURN_NEWLINE;
Expand Down Expand Up @@ -456,7 +457,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength)
{
response = "HTTP/1." + fromString(String(_currentVersion)) + " ";
response += code;
response += fromString(String(code));
response += " ";
response += fromString(_responseCodeToString(code));
response += RETURN_NEWLINE;
Expand Down
9 changes: 5 additions & 4 deletions src/EthernetWebServer_SSL_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

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

#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.0"
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.1"

#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MAJOR 1
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MINOR 4
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 0
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 1

#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004000
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004001

#define USE_NEW_WEBSERVER_VERSION true

Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// Class to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_URLEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// Library to simplify HTTP fetching on Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// (c) Copyright Arduino. 2016
Expand Down
3 changes: 2 additions & 1 deletion src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

// (c) Copyright Arduino. 2016
Expand Down
3 changes: 2 additions & 1 deletion src/Parsing_SSL_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/detail/Debug_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/detail/RequestHandler_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/detail/RequestHandlersImpl_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/detail/mimetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -24,6 +24,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#ifndef __MIMETABLE_H__
Expand Down
3 changes: 2 additions & 1 deletion src/inner.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,6 +25,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#include "SSLClient/inner.h"
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/base64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,6 +25,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#include "base64.h"
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Licensed under MIT license
Version: 1.4.0
Version: 1.4.1
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -25,6 +25,7 @@
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 6fbf2e1

Please sign in to comment.