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

Commit dc60ea8

Browse files
committed
Fix #79: wrong overload leading to ambiguous method call error during compilation
1 parent 02e233f commit dc60ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ESPAsyncWebServer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,15 @@ class AsyncWebServerRequest {
314314
} else
315315
send(404);
316316
}
317-
void send(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
317+
void send(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
318318

319319
void send(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
320320
if (content) {
321321
send(beginResponse(content, path, contentType, download, callback));
322322
} else
323323
send(404);
324324
}
325-
void send(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
325+
void send(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
326326

327327
void send(Stream& stream, const char* contentType, size_t len, AwsTemplateProcessor callback = nullptr) { send(beginResponse(stream, contentType, len, callback)); }
328328
void send(Stream& stream, const String& contentType, size_t len, AwsTemplateProcessor callback = nullptr) { send(beginResponse(stream, contentType, len, callback)); }

0 commit comments

Comments
 (0)