We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c355f30 + 00a0cfb commit 20ce691Copy full SHA for 20ce691
1 file changed
src/AsyncWebHeader.cpp
@@ -15,14 +15,14 @@ const AsyncWebHeader AsyncWebHeader::parse(const char *data) {
15
if (strchr(data, '\n') || strchr(data, '\r')) {
16
return AsyncWebHeader(); // Invalid header format
17
}
18
- char *colon = strchr(data, ':');
+ const char *colon = strchr(data, ':');
19
if (!colon) {
20
return AsyncWebHeader(); // separator not found
21
22
if (colon == data) {
23
return AsyncWebHeader(); // Header name cannot be empty
24
25
- char *startOfValue = colon + 1; // Skip the colon
+ const char *startOfValue = colon + 1; // Skip the colon
26
// skip one optional whitespace after the colon
27
if (*startOfValue == ' ') {
28
startOfValue++;
0 commit comments