| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 08d7df1 commit 40ffb03
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,6 +76,7 @@ char contentTypes[][2][32] = { | |||
| 76 | 76 | #include <SSLCert.hpp> | |
| 77 | 77 | #include <HTTPRequest.hpp> | |
| 78 | 78 | #include <HTTPResponse.hpp> | |
| 79 | + #include <util.hpp> | ||
| 79 | 80 | ||
| 80 | 81 | // We use the following struct to store GPIO events: | |
| 81 | 82 | #define MAX_EVENTS 20 | |
@@ -316,7 +317,7 @@ void handleSPIFFS(HTTPRequest * req, HTTPResponse * res) { | |||
| 316 | 317 | File file = SPIFFS.open(filename.c_str()); | |
| 317 | 318 | ||
| 318 | 319 | // Set length | |
| 319 | - res->setHeader("Content-Length", "" + file.size()); | ||
| 320 | + res->setHeader("Content-Length", httpsserver::intToString(file.size())); | ||
| 320 | 321 | ||
| 321 | 322 | // Content-Type is guessed using the definition of the contentTypes-table defined above | |
| 322 | 323 | int cTypeIdx = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments