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

Commit e958313

Browse files
committed
avoid another redirect
1 parent 71c0fa7 commit e958313

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
@@ -372,11 +372,11 @@ class AsyncWebServerRequest {
372372

373373
[[deprecated("Replaced by beginResponse(...)")]]
374374
AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) {
375-
return beginResponse(code, contentType, content, len, callback);
375+
return beginResponse(code, contentType.c_str(), content, len, callback);
376376
}
377377
[[deprecated("Replaced by beginResponse(...)")]]
378378
AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) {
379-
return beginResponse(code, contentType, content, callback);
379+
return beginResponse(code, contentType.c_str(), content, callback);
380380
}
381381

382382
#ifdef ESP8266

0 commit comments

Comments
 (0)