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

Commit 56a5dd4

Browse files
authored
v1.7.1 to fix String-related bug
### Releases v1.7.1 1. Fix bug related to String in library and examples
1 parent 525c2bf commit 56a5dd4

26 files changed

+58
-35
lines changed

src/EthernetHttpClient_SSL.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL-impl.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
#pragma once
@@ -458,8 +459,7 @@ void EthernetWebServer::_prepareHeader(String& response, int code, const char* c
458459

459460
response = fromEWString(aResponse);
460461

461-
//MR & KH fix
462-
_responseHeaders = *(new String());
462+
_responseHeaders = String("");
463463
}
464464

465465
void EthernetWebServer::_prepareHeader(EWString& response, int code, const char* content_type, size_t contentLength)
@@ -501,8 +501,7 @@ void EthernetWebServer::_prepareHeader(EWString& response, int code, const char*
501501
response += fromString(_responseHeaders);
502502
response += RETURN_NEWLINE;
503503

504-
//MR & KH fix
505-
_responseHeaders = *(new String());
504+
_responseHeaders = String("");
506505
}
507506

508507
void EthernetWebServer::send(int code, const char* content_type, const String& content)
@@ -910,8 +909,7 @@ void EthernetWebServer::_handleRequest()
910909
//_currentUri = String();
911910
ET_LOGDEBUG(F("_handleRequest: Done Clear _currentUri"));
912911
#else
913-
//MR & KH fix
914-
_currentUri = *(new String());
912+
_responseHeaders = String("");
915913
#endif
916914
}
917915

src/EthernetWebServer_SSL.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,17 +25,18 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
#pragma once
3132

32-
#define ETHERNET_WEBSERVER_SSL_VERSION "EthernetWebServer_SSL v1.7.0"
33+
#define ETHERNET_WEBSERVER_SSL_VERSION "EthernetWebServer_SSL v1.7.1"
3334

3435
#define ETHERNET_WEBSERVER_SSL_VERSION_MAJOR 1
3536
#define ETHERNET_WEBSERVER_SSL_VERSION_MINOR 7
36-
#define ETHERNET_WEBSERVER_SSL_VERSION_PATCH 0
37+
#define ETHERNET_WEBSERVER_SSL_VERSION_PATCH 1
3738

38-
#define ETHERNET_WEBSERVER_SSL_VERSION_INT 1007000
39+
#define ETHERNET_WEBSERVER_SSL_VERSION_INT 1007001
3940

4041
#define USE_NEW_WEBSERVER_VERSION true
4142

src/EthernetWrapper_SSL.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930
#pragma once
3031

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// 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
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL
1010
Licensed under MIT license
1111
12-
Version: 1.7.0
12+
Version: 1.7.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -25,6 +25,7 @@
2525
1.6.0 K Hoang 04/09/2021 Add support to QNEthernet Library for Teensy 4.1
2626
1.6.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
2727
1.7.0 K Hoang 19/12/2021 Reduce usage of Arduino String with std::string. Add support to Portenta H7 Ethernet
28+
1.7.1 K Hoang 25/12/2021 Fix bug relating to String
2829
*************************************************************************************************************************************/
2930

3031
// (c) Copyright Arduino. 2016

0 commit comments

Comments
 (0)