writeHeader should writeStatus also for int64

This commit is contained in:
Alex Hultman
2020-12-22 13:59:06 +01:00
committed by GitHub
parent 62ea46321d
commit 5b70871a08
+2
View File
@@ -371,6 +371,8 @@ public:
/* Write an HTTP header with unsigned int value */
HttpResponse *writeHeader(std::string_view key, uint64_t value) {
writeStatus(HTTP_200_OK);
Super::write(key.data(), (int) key.length());
Super::write(": ", 2);
writeUnsigned64(value);