From 6dbe650c743fc054b9524c7c46cd8ccf07089e11 Mon Sep 17 00:00:00 2001 From: Umar Sharief <80610051+noneofyourbusiness1415252@users.noreply.github.com> Date: Sat, 1 Jul 2023 04:44:22 +0100 Subject: [PATCH] Fix typo in newHttpJsonResponse documentation (#1658) --- lib/inc/drogon/HttpResponse.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/inc/drogon/HttpResponse.h b/lib/inc/drogon/HttpResponse.h index fec8b3bb..a92f57a3 100644 --- a/lib/inc/drogon/HttpResponse.h +++ b/lib/inc/drogon/HttpResponse.h @@ -358,9 +358,11 @@ class DROGON_EXPORT HttpResponse ContentType type); /// Create a response which returns a 404 page. static HttpResponsePtr newNotFoundResponse(); - /// Create a response which returns a json object. Its content type is set - /// to set/json. + /// Create a response which returns a json object. Its content-type is set + /// to application/json. static HttpResponsePtr newHttpJsonResponse(const Json::Value &data); + /// Create a response which returns a json object. Its content-type is set + /// to application/json. static HttpResponsePtr newHttpJsonResponse(Json::Value &&data); /// Create a response that returns a page rendered by a view named /// viewName.