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

Commit 89c58b4

Browse files
authored
v1.5.2 to fix wrong http status header
### Releases v1.5.2 1. Fix wrong http status header bug. Check [fix for wrong http status header #42](khoih-prog/EthernetWebServer#42)
1 parent c145d2b commit 89c58b4

29 files changed

+74
-46
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
15401540

15411541
```
15421542
Starting SimpleWebSocket on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1543-
WiFiWebServer v1.5.1
1543+
WiFiWebServer v1.5.2
15441544
Connecting to SSID: HueNet1
15451545
You're connected to the network, IP = 192.168.2.98
15461546
SSID: HueNet1, Signal strength (RSSI):-24 dBm
@@ -1574,7 +1574,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
15741574

15751575
```
15761576
Starting SimpleHTTPExample on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1577-
WiFiWebServer v1.5.1
1577+
WiFiWebServer v1.5.2
15781578
Connecting to SSID: HueNet1
15791579
You're connected to the network, IP = 192.168.2.98
15801580
SSID: HueNet1, Signal strength (RSSI):-21 dBm
@@ -1634,7 +1634,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
16341634

16351635
```
16361636
Starting DweetPost on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1637-
WiFiWebServer v1.5.1
1637+
WiFiWebServer v1.5.2
16381638
Connecting to SSID: HueNet1
16391639
You're connected to the network, IP = 192.168.2.98
16401640
SSID: HueNet1, Signal strength (RSSI):-22 dBm
@@ -1657,7 +1657,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
16571657

16581658
```
16591659
Starting DweetGet on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1660-
WiFiWebServer v1.5.1
1660+
WiFiWebServer v1.5.2
16611661
Connecting to SSID: HueNet1
16621662
You're connected to the network, IP = 192.168.2.98
16631663
SSID: HueNet1, Signal strength (RSSI):-25 dBm
@@ -1687,7 +1687,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
16871687

16881688
```
16891689
Starting MQTTClient_Auth on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1690-
WiFiWebServer v1.5.1
1690+
WiFiWebServer v1.5.2
16911691
Please upgrade the firmware
16921692
Connecting to WPA SSID: HueNet1
16931693
Connected! IP address: 192.168.2.98
@@ -1708,7 +1708,7 @@ The terminal output of **SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic L
17081708
```
17091709
Start MQTT_ThingStream on SAMD_NANO_33_IOT
17101710
Starting MQTTClient_Auth on SAMD_NANO_33_IOT with WiFiNINA using WiFiNINA_Generic Library
1711-
WiFiWebServer v1.5.1
1711+
WiFiWebServer v1.5.2
17121712
Please upgrade the firmware
17131713
Connecting to WPA SSID: HueNet1
17141714
Connected! IP address: 192.168.2.98
@@ -1736,7 +1736,7 @@ The terminal output of **RASPBERRY_PI_PICO with Custom WiFi (ESP8266-AT) using C
17361736

17371737
```
17381738
Starting WebClientRepeating on RASPBERRY_PI_PICO with Custom WiFi using Custom WiFi Library
1739-
WiFiWebServer v1.5.1
1739+
WiFiWebServer v1.5.2
17401740
WiFi shield init done
17411741
Connecting to SSID: HueNet1
17421742
You're connected to the network, IP = 192.168.2.76
@@ -1809,7 +1809,7 @@ The following are debug terminal output and screen shot when running example [**
18091809

18101810
```
18111811
Starting AdvancedServer on Nano RP2040 Connect with WiFiNINA using WiFiNINA_Generic Library
1812-
WiFiWebServer v1.5.1
1812+
WiFiWebServer v1.5.2
18131813
Connecting to WPA SSID: HueNet1
18141814
HTTP server started @ 192.168.2.130
18151815
H[WIFI] handleClient: New Client
@@ -1937,10 +1937,8 @@ Connection: close
19371937
The terminal output of **ESP32_DEV** running [SimpleHTTPExample example](examples/HTTPClient/SimpleHTTPExample) to demonstrate newly-added HTTP Client feature.
19381938

19391939
```
1940-
1941-
19421940
Starting SimpleHTTPExample on ESP32_DEV with ESP WiFi using WiFi Library
1943-
WiFiWebServer v1.5.1
1941+
WiFiWebServer v1.5.2
19441942
Connecting to SSID: HueNet1
19451943
You're connected to the network, IP = 192.168.2.80
19461944
SSID: HueNet1, Signal strength (RSSI):-23 dBm
@@ -2007,7 +2005,7 @@ The following are debug terminal output and screen shot when running example [**
20072005

20082006
```
20092007
Starting AdvancedServer on PORTENTA_H7_M7 with Portenta_H7 WiFi
2010-
WiFiWebServer v1.5.1
2008+
WiFiWebServer v1.5.2
20112009
Connecting to WPA SSID: HueNet1
20122010
HTTP server started @ 192.168.2.138
20132011
H[WIFI] String Len = 0, extend to 2048
@@ -2023,7 +2021,7 @@ The terminal output of **PORTENTA_H7_M7 with Portenta_H7 WiFi** running [MQTTCli
20232021

20242022
```
20252023
Starting MQTTClient_Auth on PORTENTA_H7_M7 with Portenta_H7 WiFi
2026-
WiFiWebServer v1.5.1
2024+
WiFiWebServer v1.5.2
20272025
Connecting to SSID: HueNet1
20282026
Connected! IP address: 192.168.2.130
20292027
Attempting MQTT connection to broker.emqx.io...connected
@@ -2043,7 +2041,7 @@ The terminal output of **PORTENTA_H7_M7 with Portenta_H7 WiFi** running [WebClie
20432041

20442042
```
20452043
Starting WebClientRepeating on PORTENTA_H7_M7 with Portenta_H7 WiFi
2046-
WiFiWebServer v1.5.1
2044+
WiFiWebServer v1.5.2
20472045
Connecting to SSID: HueNet1
20482046
You're connected to the network, IP = 192.168.2.130
20492047
SSID: HueNet1, Signal strength (RSSI):-33 dBm

changelog.md

Lines changed: 5 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.5.2](#releases-v152)
1516
* [Releases v1.5.1](#releases-v151)
1617
* [Major Releases v1.5.0](#major-releases-v150)
1718
* [Releases v1.4.2](#releases-v142)
@@ -36,6 +37,10 @@
3637

3738
## Changelog
3839

40+
### Releases v1.5.2
41+
42+
1. Fix wrong http status header bug. Check [fix for wrong http status header #42](https://github.com/khoih-prog/EthernetWebServer/pull/42)
43+
3944
### Releases v1.5.1
4045

4146
1. Fix bug related to String in library and examples

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "WiFiWebServer",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"keywords": "wifi, wi-fi, WebServer, WiFiNINA, WiFi101, ESP32, Portenta-H7, Teensy, SAM DUE, SAMD, STM32, nRF52, rpi-pico, rp2040, HTTP-Client, WebSocket-Client, server, client, websocket, AVR, Mega",
55
"description": "Simple WiFiWebServer, HTTP Client and WebSocket Client library for AVR Mega, Portenta_H7, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, RP2040-based (Nano-RP2040-Connect, RASPBERRY_PI_PICO, ESP32/ESP8266, etc.) boards using WiFi, such as WiFiNINA, WiFi101, U-Blox W101, W102, ESP8266/ESP32-AT modules/shields, with functions similar to those of ESP8266/ESP32 WebServer libraries.",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=WiFiWebServer
2-
version=1.5.1
2+
version=1.5.2
33
author=Khoi Hoang
44
license=MIT
55
maintainer=Khoi Hoang <[email protected]>

src/Parsing-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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,6 +35,7 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
***************************************************************************************************************************************/
3940

4041
#pragma once

src/WiFiHttpClient.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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,6 +35,7 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
*****************************************************************************************************************************/
3940

4041
// Library to simplify HTTP fetching on Arduino

src/WiFiWebServer-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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,6 +35,7 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
***************************************************************************************************************************************/
3940

4041
#pragma once
@@ -426,7 +427,7 @@ void WiFiWebServer::_prepareHeader(String& response, int code, const char* conte
426427
WWString aResponse = fromString(response);
427428

428429
aResponse = "HTTP/1." + fromString(String(_currentVersion)) + " ";
429-
aResponse += code;
430+
aResponse += fromString(String(code));
430431
aResponse += " ";
431432
aResponse += fromString(_responseCodeToString(code));
432433
aResponse += RETURN_NEWLINE;
@@ -470,7 +471,7 @@ void WiFiWebServer::_prepareHeader(String& response, int code, const char* conte
470471
void WiFiWebServer::_prepareHeader(WWString& response, int code, const char* content_type, size_t contentLength)
471472
{
472473
response = "HTTP/1." + fromString(String(_currentVersion)) + " ";
473-
response += code;
474+
response += fromString(String(code));
474475
response += " ";
475476
response += fromString(_responseCodeToString(code));
476477
response += RETURN_NEWLINE;

src/WiFiWebServer.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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,17 +35,18 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
***************************************************************************************************************************************/
3940

4041
#pragma once
4142

42-
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.5.1"
43+
#define WIFI_WEBSERVER_VERSION "WiFiWebServer v1.5.2"
4344

4445
#define WIFI_WEBSERVER_VERSION_MAJOR 1
4546
#define WIFI_WEBSERVER_VERSION_MINOR 5
46-
#define WIFI_WEBSERVER_VERSION_PATCH 1
47+
#define WIFI_WEBSERVER_VERSION_PATCH 2
4748

48-
#define WIFI_WEBSERVER_VERSION_INT 1005001
49+
#define WIFI_WEBSERVER_VERSION_INT 1005002
4950

5051
#define USE_NEW_WEBSERVER_VERSION true
5152

src/WiFi_HTTPClient/WiFi_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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,6 +35,7 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
***************************************************************************************************************************************/
3940

4041
// Class to simplify HTTP fetching on Arduino

src/WiFi_HTTPClient/WiFi_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.5.1
15+
Version: 1.5.2
1616
1717
Version Modified By Date Comments
1818
------- ----------- ---------- -----------
@@ -35,6 +35,7 @@
3535
1.4.2 K Hoang 12/10/2021 Update `platform.ini` and `library.json`
3636
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
3737
1.5.1 K Hoang 25/12/2021 Fix bug
38+
1.5.2 K Hoang 27/12/2021 Fix wrong http status header bug
3839
***************************************************************************************************************************************/
3940

4041
// Class to simplify HTTP fetching on Arduino

0 commit comments

Comments
 (0)