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

Commit

Permalink
v1.3.2 to fix wrong http status header
Browse files Browse the repository at this point in the history
### Releases v1.3.2

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 46242ff commit 5148a33
Show file tree
Hide file tree
Showing 24 changed files with 95 additions and 104 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ Following is debug terminal output and screen shot when running example [Advance

```
Start AdvancedWebServer on NUCLEO_F767ZI, using LAN8742A Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
HTTP EthernetWebServer is @ IP : 192.168.2.117
EthernetWebServer::handleClient: New Client
method: GET
Expand Down Expand Up @@ -1491,7 +1491,7 @@ The following is debug terminal output when running example [WebClientRepeating]

```
Start WebClientRepeating on NUCLEO_F767ZI, using ENC28J60 & EthernetENC Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] Board : NUCLEO_F767ZI , setCsPin: 10
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1566,7 +1566,7 @@ The following is debug terminal output when running example [UdpNTPClient](examp

```
Start UdpNTPClient on NUCLEO_F767ZI, using W5x00 & Ethernet2 Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] Board : NUCLEO_F767ZI , setCsPin: 10
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand All @@ -1590,7 +1590,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with LAN8742A Ethernet

```
Starting SimpleWebSocket on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========================
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1635,7 +1635,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with W5x00 & Ethernet3

```
Starting SimpleWebSocket on NUCLEO_F767ZI with W5x00 & Ethernet3 Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========== USE_ETHERNET3 ===========
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1687,7 +1687,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with LAN8742A Ethernet

```
Starting SimpleHTTPExample on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========================
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1760,7 +1760,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with LAN8742A Ethernet

```
Start MQTTClient_Auth on NUCLEO_F767ZI with LAN8742A Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========================
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1799,7 +1799,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with ENC28J60 & Ethern

```
Start MQTTClient_Auth on NUCLEO_F767ZI with ENC28J60 & EthernetENC Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========== USE_ETHERNET_ENC ===========
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1838,7 +1838,7 @@ The terminal output of **STM32F7 Nucleo-144 NUCLEO_F767ZI with W5x00 & Ethernet2

```
Start MQTTClient_Auth on NUCLEO_F767ZI with W5x00 & Ethernet2 Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
[ETHERNET_WEBSERVER] =========== USE_ETHERNET2 ===========
[ETHERNET_WEBSERVER] Default SPI pinout:
[ETHERNET_WEBSERVER] MOSI: 11
Expand Down Expand Up @@ -1872,7 +1872,7 @@ The terminal output of **STM32F4 BLACK_F407VE with LAN8720 Ethernet and STM32Eth

```
Starting SimpleWebSocket_LAN8720 on BLACK_F407VE with LAN8720 Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
Using mac index = 6
Connected! IP address: 192.168.2.138
starting WebSocket client
Expand All @@ -1897,7 +1897,7 @@ The terminal output of **BLACK_F407VE using LAN8720 Ethernet and STM32Ethernet L

```
Start WebClient_LAN8720 on BLACK_F407VE, using LAN8720 Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
You're connected to the network, IP = 192.168.2.139
Starting connection to server...
Expand Down Expand Up @@ -1970,7 +1970,7 @@ Following is debug terminal output and screen shot when running example [Advance

```
Start AdvancedWebServer_LAN8720 on BLACK_F407VE, using LAN8720 Ethernet & STM32Ethernet Library
EthernetWebServer_STM32 v1.3.1
EthernetWebServer_STM32 v1.3.2
.[EWS] String Len = 0, extend to 2048
......... .......... .......... .......... .......... .......... .......... ..........
```
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
## Table of Contents

* [Changelog](#changelog)
* [Releases v1.3.2](#releases-v132)
* [Releases v1.3.1](#releases-v131)
* [Major Releases v1.3.0](#major-releases-v130)
* [Releases v1.2.1](#releases-v121)
Expand All @@ -30,6 +31,11 @@

## Changelog

### Releases v1.3.2

1. Fix wrong http status header bug. Check [fix for wrong http status header #42](https://github.com/khoih-prog/EthernetWebServer/pull/42)
2. Fix authenticate issue caused by libb64

### Releases v1.3.1

1. Fix bug related to String in examples
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "EthernetWebServer_STM32",
"version": "1.3.1",
"version": "1.3.2",
"keywords": "WebServer, built-in-Ethernet, STM32F, STM32L, STM32H, STM32G, STM32WB, STM32MP1, Ethernet-shield, Nucleo-144, Nucleo-64, Nucleo-32, LAN8742A, LAN8720, ENC28J60, W5x00, W5500, W5100, Ethernet, Ethernet2, Ethernet3, EthernetLarge, EtnernetENC, UIPEthernet, HTTP-Client, WebSocket-Client, server, client, websocket",
"description": "Simple Ethernet WebServer, HTTP Client and WebSocket Client library for STM32F/L/H/G/WB/MP1 boards running built-in Ethernet LAN8742A, LAN8720 or Ethernet W5x00, ENC28J60 shields",
"authors":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EthernetWebServer_STM32
version=1.3.1
version=1.3.2
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion src/EthernetHttpClient_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -422,7 +423,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 @@ -466,7 +467,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_STM32.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down Expand Up @@ -58,13 +59,13 @@

#endif

#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.3.1"
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.3.2"

#define ETHERNET_WEBSERVER_STM32_VERSION_MAJOR 1
#define ETHERNET_WEBSERVER_STM32_VERSION_MINOR 3
#define ETHERNET_WEBSERVER_STM32_VERSION_PATCH 1
#define ETHERNET_WEBSERVER_STM32_VERSION_PATCH 2

#define ETHERNET_WEBSERVER_STM32_VERSION_INT 1003001
#define ETHERNET_WEBSERVER_STM32_VERSION_INT 1003002

#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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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_STM32-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/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 @@ -12,7 +12,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.3.1
Version: 1.3.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -30,6 +30,7 @@
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
1.3.1 K Hoang 25/12/2021 Fix bug
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
*************************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 5148a33

Please sign in to comment.