@@ -671,14 +671,14 @@ class AsyncWebServerRequest {
671671 AsyncWebServerResponse *
672672 beginResponse (FS &fs, const String &path, const char *contentType = asyncsrv::empty, bool download = false , AwsTemplateProcessor callback = nullptr );
673673 AsyncWebServerResponse *
674- beginResponse (FS &fs, const String &path, const String &contentType = asyncsrv::empty , bool download = false , AwsTemplateProcessor callback = nullptr ) {
674+ beginResponse (FS &fs, const String &path, const String &contentType = asyncsrv::emptyString , bool download = false , AwsTemplateProcessor callback = nullptr ) {
675675 return beginResponse (fs, path, contentType.c_str (), download, callback);
676676 }
677677
678678 AsyncWebServerResponse *
679679 beginResponse (File content, const String &path, const char *contentType = asyncsrv::empty, bool download = false , AwsTemplateProcessor callback = nullptr );
680680 AsyncWebServerResponse *
681- beginResponse (File content, const String &path, const String &contentType = asyncsrv::empty , bool download = false , AwsTemplateProcessor callback = nullptr ) {
681+ beginResponse (File content, const String &path, const String &contentType = asyncsrv::emptyString , bool download = false , AwsTemplateProcessor callback = nullptr ) {
682682 return beginResponse (content, path, contentType.c_str (), download, callback);
683683 }
684684
@@ -783,11 +783,11 @@ class AsyncWebServerRequest {
783783#endif
784784 const String &arg (size_t i) const ; // get request argument value by number
785785 const String &arg (int i) const {
786- return i < 0 ? asyncsrv::empty : arg ((size_t )i);
786+ return i < 0 ? asyncsrv::emptyString : arg ((size_t )i);
787787 };
788788 const String &argName (size_t i) const ; // get request argument name by number
789789 const String &argName (int i) const {
790- return i < 0 ? asyncsrv::empty : argName ((size_t )i);
790+ return i < 0 ? asyncsrv::emptyString : argName ((size_t )i);
791791 };
792792 bool hasArg (const char *name) const ; // check if argument exists
793793 bool hasArg (const String &name) const {
@@ -800,14 +800,14 @@ class AsyncWebServerRequest {
800800#ifdef ASYNCWEBSERVER_REGEX
801801 const String &pathArg (size_t i) const {
802802 if (i >= _pathParams.size ()) {
803- return asyncsrv::empty ;
803+ return asyncsrv::emptyString ;
804804 }
805805 auto it = _pathParams.begin ();
806806 std::advance (it, i);
807807 return *it;
808808 }
809809 const String &pathArg (int i) const {
810- return i < 0 ? asyncsrv::empty : pathArg ((size_t )i);
810+ return i < 0 ? asyncsrv::emptyString : pathArg ((size_t )i);
811811 }
812812#else
813813 const String &pathArg (size_t i) const __attribute__((error(" ERR: pathArg() requires -D ASYNCWEBSERVER_REGEX and only works on regex handlers" )));
@@ -826,11 +826,11 @@ class AsyncWebServerRequest {
826826
827827 const String &header (size_t i) const ; // get request header value by number
828828 const String &header (int i) const {
829- return i < 0 ? asyncsrv::empty : header ((size_t )i);
829+ return i < 0 ? asyncsrv::emptyString : header ((size_t )i);
830830 };
831831 const String &headerName (size_t i) const ; // get request header name by number
832832 const String &headerName (int i) const {
833- return i < 0 ? asyncsrv::empty : headerName ((size_t )i);
833+ return i < 0 ? asyncsrv::emptyString : headerName ((size_t )i);
834834 };
835835
836836 size_t headers () const ; // get header count
@@ -888,7 +888,7 @@ class AsyncWebServerRequest {
888888 _attributes[name] = value;
889889 }
890890 void setAttribute (const char *name, bool value) {
891- _attributes[name] = value ? " 1" : asyncsrv::empty ;
891+ _attributes[name] = value ? " 1" : asyncsrv::emptyString ;
892892 }
893893 void setAttribute (const char *name, long value) {
894894 _attributes[name] = String (value);
@@ -904,7 +904,7 @@ class AsyncWebServerRequest {
904904 return _attributes.find (name) != _attributes.end ();
905905 }
906906
907- const String &getAttribute (const char *name, const String &defaultValue = asyncsrv::empty ) const ;
907+ const String &getAttribute (const char *name, const String &defaultValue = asyncsrv::emptyString ) const ;
908908 bool getAttribute (const char *name, bool defaultValue) const ;
909909 long getAttribute (const char *name, long defaultValue) const ;
910910 float getAttribute (const char *name, float defaultValue) const ;
0 commit comments