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

Commit 5148a33

Browse files
authored
v1.3.2 to fix wrong http status header
### 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
1 parent 46242ff commit 5148a33

24 files changed

+95
-104
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ Following is debug terminal output and screen shot when running example [Advance
13671367

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

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

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

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

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

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

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

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

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

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

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

19711971
```
19721972
Start AdvancedWebServer_LAN8720 on BLACK_F407VE, using LAN8720 Ethernet & STM32Ethernet Library
1973-
EthernetWebServer_STM32 v1.3.1
1973+
EthernetWebServer_STM32 v1.3.2
19741974
.[EWS] String Len = 0, extend to 2048
19751975
......... .......... .......... .......... .......... .......... .......... ..........
19761976
```

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v1.3.2](#releases-v132)
1516
* [Releases v1.3.1](#releases-v131)
1617
* [Major Releases v1.3.0](#major-releases-v130)
1718
* [Releases v1.2.1](#releases-v121)
@@ -30,6 +31,11 @@
3031

3132
## Changelog
3233

34+
### Releases v1.3.2
35+
36+
1. Fix wrong http status header bug. Check [fix for wrong http status header #42](https://github.com/khoih-prog/EthernetWebServer/pull/42)
37+
2. Fix authenticate issue caused by libb64
38+
3339
### Releases v1.3.1
3440

3541
1. Fix bug related to String in examples

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EthernetWebServer_STM32",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"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",
55
"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",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EthernetWebServer_STM32
2-
version=1.3.1
2+
version=1.3.2
33
author=Khoi Hoang
44
license=MIT
55
maintainer=Khoi Hoang <khoih.prog@gmail.com>

src/EthernetHttpClient_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_STM32-impl.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once
@@ -422,7 +423,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
422423
EWString aResponse = fromString(response);
423424

424425
aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " ";
425-
aResponse += code;
426+
aResponse += fromString(String(code));
426427
aResponse += " ";
427428
aResponse += fromString(_responseCodeToString(code));
428429
aResponse += RETURN_NEWLINE;
@@ -466,7 +467,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
466467
void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength)
467468
{
468469
response = "HTTP/1." + fromString(String(_currentVersion)) + " ";
469-
response += code;
470+
response += fromString(String(code));
470471
response += " ";
471472
response += fromString(_responseCodeToString(code));
472473
response += RETURN_NEWLINE;

src/EthernetWebServer_STM32.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once
@@ -58,13 +59,13 @@
5859

5960
#endif
6061

61-
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.3.1"
62+
#define ETHERNET_WEBSERVER_STM32_VERSION "EthernetWebServer_STM32 v1.3.2"
6263

6364
#define ETHERNET_WEBSERVER_STM32_VERSION_MAJOR 1
6465
#define ETHERNET_WEBSERVER_STM32_VERSION_MINOR 3
65-
#define ETHERNET_WEBSERVER_STM32_VERSION_PATCH 1
66+
#define ETHERNET_WEBSERVER_STM32_VERSION_PATCH 2
6667

67-
#define ETHERNET_WEBSERVER_STM32_VERSION_INT 1003001
68+
#define ETHERNET_WEBSERVER_STM32_VERSION_INT 1003002
6869

6970
#define USE_NEW_WEBSERVER_VERSION true
7071

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// 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
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// 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
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// 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
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// 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
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
// (c) Copyright Arduino. 2016

src/Parsing_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once

src/detail/Debug_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once

src/detail/RequestHandler_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once

src/detail/RequestHandlersImpl_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@file Esp8266WebServer.h
1313
@author Ivan Grokhotkov
1414
15-
Version: 1.3.1
15+
Version: 1.3.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -30,6 +30,7 @@
3030
1.2.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
3131
1.3.0 K Hoang 20/12/2021 Reduce usage of Arduino String with std::string. Use reference passing instead of value-passing
3232
1.3.1 K Hoang 25/12/2021 Fix bug
33+
1.3.2 K Hoang 28/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
3334
*************************************************************************************************************************************/
3435

3536
#pragma once

0 commit comments

Comments
 (0)