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

Commit 088d9b7

Browse files
authored
Merge pull request #492 from janhq/465-fix-http-res-content-type-v2
fix: Update content-type for responses
2 parents d3977ea + 67f69bb commit 088d9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/nitro_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ inline void nitro_logo() {
246246
}
247247

248248
inline drogon::HttpResponsePtr nitroHttpResponse() {
249-
auto resp = drogon::HttpResponse::newHttpResponse();
249+
auto resp = drogon::HttpResponse::newHttpResponse(drogon::k200OK, drogon::CT_APPLICATION_JSON);
250250
#ifdef ALLOW_ALL_CORS
251251
LOG_INFO << "Respond for all cors!";
252252
resp->addHeader("Access-Control-Allow-Origin", "*");

0 commit comments

Comments
 (0)