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

Commit a03a491

Browse files
committed
Fix #73
1 parent 4cc9154 commit a03a491

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ESPAsyncWebServer.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,14 @@ class AsyncWebHeader {
154154

155155
const String& name() const { return _name; }
156156
const String& value() const { return _value; }
157-
String toString() const { return _name + (char)0x3a + (char)0x20 /*": "*/ + _value + asyncsrv::T_rn; }
157+
String toString() const {
158+
String str = _name;
159+
str.concat((char)0x3a);
160+
str.concat((char)0x20);
161+
str.concat(_value);
162+
str.concat(asyncsrv::T_rn);
163+
return str;
164+
}
158165
};
159166

160167
/*

0 commit comments

Comments
 (0)