mirror of https://github.com/lumapu/ahoy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
566 B
14 lines
566 B
1 year ago
|
diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp
|
||
|
index 22a549f..e0b36b3 100644
|
||
|
--- a/src/WebResponses.cpp
|
||
|
+++ b/src/WebResponses.cpp
|
||
|
@@ -318,7 +318,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest *request, size_t len, u
|
||
|
free(buf);
|
||
|
return 0;
|
||
|
}
|
||
|
- outLen = sprintf_P((char*)buf+headLen, PSTR("%x"), readLen) + headLen;
|
||
|
+ outLen = sprintf_P((char*)buf+headLen, PSTR("%04x"), readLen) + headLen;
|
||
|
while(outLen < headLen + 4) buf[outLen++] = ' ';
|
||
|
buf[outLen++] = '\r';
|
||
|
buf[outLen++] = '\n';
|