Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/nitro_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ inline void nitro_logo() {
}

inline drogon::HttpResponsePtr nitroHttpResponse() {
auto resp = drogon::HttpResponse::newHttpResponse();
auto resp = drogon::HttpResponse::newHttpResponse(drogon::k200OK, drogon::CT_APPLICATION_JSON);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#ifdef ALLOW_ALL_CORS
LOG_INFO << "Respond for all cors!";
resp->addHeader("Access-Control-Allow-Origin", "*");
Expand Down