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

Commit

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

1. Fix wrong http status header bug. Check [fix for wrong http status header #42](khoih-prog/EthernetWebServer#42)
  • Loading branch information
khoih-prog authored Dec 28, 2021
1 parent 7a236a3 commit 3ca0c7f
Show file tree
Hide file tree
Showing 27 changed files with 66 additions and 38 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ The ESP8266_AT_Web_Server class found in `ESP8266_AT_Web_Server.h` header, is a
8. [`Adafruit nRF52 v1.2.0+`](https://www.adafruit.com) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest). Please remember to use latest [`Packages_Patches`](https://github.com/khoih-prog/WiFiWebServer/tree/master/Packages_Patches) or getting compiler errors.
9. [`Arduino Core for STM32 v2.2.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest)
10. [`Arduino mbed_rp2040 core 2.6.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest)
11. [`Earle Philhower's arduino-pico core v1.9.9+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
11. [`Earle Philhower's arduino-pico core v1.9.10+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest)
12. [`Sipeed Maixduino core v0.3.11+`](https://github.com/sipeed/Maixduino) for K210-RISC-V-based boards such as **Maixduino AI Development Kit K210 RISC-V AI + IoT ESP32, Sipeed Maix Go, Sipeed Maix Bit**, etc. [![GitHub release](https://img.shields.io/github/release/sipeed/Maixduino.svg)](https://github.com/sipeed/Maixduino/releases/latest)
13. [`Functional-VLPP library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/Functional-Vlpp.svg?)](https://www.ardu-badge.com/Functional-Vlpp)
14. [`Ai-Thinker AT Firmware v1.5.4`](AT_Firmwares/At_firmware_bin1.54.zip) or [`AT Firmware v1.7.4.0`](AT_Firmwares/AT_Firmware_bin_1.7.4.0.zip) for ESP8266-AT shields.
Expand Down Expand Up @@ -1424,7 +1424,7 @@ The following are debug terminal output when running example [AdvancedWebServer]

```
Starting AdvancedWebServer on NRF52840_ITSYBITSY_EXPRESS
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Initializing ESP module
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Expand Down Expand Up @@ -1553,7 +1553,7 @@ The following are debug terminal output when running example [MQTT_ThingStream](

```
Start MQTT_ThingStream on ITSYBITSY_M4 with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to SSID: HueNet1
Expand Down Expand Up @@ -1588,7 +1588,7 @@ The following are debug terminal output when running example [MQTTClient_Auth](e

```
Starting MQTTClient_Auth on ITSYBITSY_M4 with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to SSID: HueNet1
Expand All @@ -1614,7 +1614,7 @@ The following are debug terminal output when running example [MQTTClient_Basic](

```
MQTTClient_Basic on ITSYBITSY_M4 with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to SSID: HueNet1
Expand All @@ -1639,7 +1639,7 @@ The following are debug terminal output when running example [WebClientRepeating

```
Starting WebClientRepeating on RASPBERRY_PI_PICO with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to SSID: HueNet1
Expand Down Expand Up @@ -1708,7 +1708,7 @@ The following are debug terminal output when running example [MQTTClient_Auth](e

```
Starting MQTTClient_Auth on RASPBERRY_PI_PICO with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to SSID: HueNet1
Expand All @@ -1733,7 +1733,7 @@ The following are debug terminal output when running example [UdpNTPClient](exam

```
Starting UdpNTPClient on MBED RASPBERRY_PI_PICO with ESP8266-AT & ESP8266_AT_WebServer Library
ESP8266_AT_WebServer v1.5.1
ESP8266_AT_WebServer v1.5.2
[ESP_AT] Use ES8266-AT Command
WiFi shield init done
Connecting to WPA SSID: HueNet1
Expand Down
5 changes: 5 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.5.2](#releases-v152)
* [Releases v1.5.1](#releases-v151)
* [Releases v1.5.0](#releases-v150)
* [Releases v1.4.1](#releases-v141)
Expand All @@ -38,6 +39,10 @@

## Changelog

### Releases v1.5.2

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

### Releases v1.5.1

1. Fix bug related to String in library and 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": "ESP8266_AT_WebServer",
"version": "1.5.1",
"version": "1.5.2",
"keywords": "wifi, WebServer, server, AT-command, wifi-shield, ESP8266, ESP32, Teensy, AVR, SAM-DUE, SAMD, Maixduino, STM32, nRF52, ESP8266-AT, ESP32-AT, rpi-pico, rp2040, mbed, Maixduino-AI",
"description": "Simple WebServer library for AVR, Teensy, SAM DUE, SAMD21, SAMD51, STM32F/L/H/G/WB/MP1, nRF52, SIPEED_MAIX_DUINO and RP2040-based (RASPBERRY_PI_PICO) boards using ESP8266/ESP32 AT-command 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=ESP8266_AT_WebServer
version=1.5.1
version=1.5.2
author=Khoi Hoang
license=MIT
maintainer=Khoi Hoang <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_impl_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Client-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_Client_impl_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_Client_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Server-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/
#ifndef ESP8266_AT_Server_impl_h
#define ESP8266_AT_Server_impl_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_Server_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Udp-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_UDP_impl_h
Expand Down
3 changes: 2 additions & 1 deletion src/ESP8266_AT_Udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_UDP_h
Expand Down
7 changes: 4 additions & 3 deletions src/ESP8266_AT_WebServer-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_WebServer_impl_h
Expand Down Expand Up @@ -433,7 +434,7 @@ void ESP8266_AT_WebServer::_prepareHeader(String& response, int code, const char
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 @@ -479,7 +480,7 @@ void ESP8266_AT_WebServer::_prepareHeader(String& response, int code, const char
void ESP8266_AT_WebServer::_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/ESP8266_AT_WebServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,18 +38,19 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_WebServer_h
#define ESP8266_AT_WebServer_h

#define ESP8266_AT_WEBSERVER_VERSION "ESP8266_AT_WebServer v1.5.1"
#define ESP8266_AT_WEBSERVER_VERSION "ESP8266_AT_WebServer v1.5.2"

#define ESP8266_AT_WEBSERVER_VERSION_MAJOR 1
#define ESP8266_AT_WEBSERVER_VERSION_MINOR 5
#define ESP8266_AT_WEBSERVER_VERSION_PATCH 1
#define ESP8266_AT_WEBSERVER_VERSION_PATCH 2

#define ESP8266_AT_WEBSERVER_VERSION_INT 1005001
#define ESP8266_AT_WEBSERVER_VERSION_INT 1005002

#define USE_NEW_WEBSERVER_VERSION true

Expand Down
3 changes: 2 additions & 1 deletion src/Parsing-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
*****************************************************************************************************************************/

#ifndef ESP8266_AT_Parsing_impl_h
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/cdecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
***************************************************************************************************************************************/

#include <stdint.h>
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/cdecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
***************************************************************************************************************************************/

#pragma once
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/cencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
***************************************************************************************************************************************/

#include "cencode.h"
Expand Down
3 changes: 2 additions & 1 deletion src/libb64/cencode.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@file Esp8266WebServer.h
@author Ivan Grokhotkov
Version: 1.5.1
Version: 1.5.2
Version Modified By Date Comments
------- ----------- ---------- -----------
Expand All @@ -38,6 +38,7 @@
1.4.1 K Hoang 08/12/2021 Add Packages_Patches and instructions for BOARD_SIPEED_MAIX_DUINO
1.5.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string
1.5.1 K Hoang 24/12/2021 Fix bug
1.5.2 K Hoang 28/12/2021 Fix wrong http status header bug
***************************************************************************************************************************************/

#pragma once
Expand Down
Loading

0 comments on commit 3ca0c7f

Please sign in to comment.