You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the handler lambda, if you do return value_item withvalue_time being a list crow::json::wvalue object, you get nothing, it only works if you do return crow::response(value_item).
The-EDev
changed the title
return crow::json::wvalue doesn't work for json lists.
return crow::json::wvalue doesn't work for non "json object" types.
Nov 25, 2020
Found the culprit, line 415 in http_connection.h says if (res.body.empty() && res.json_value.t() == json::type::Object), should probably be changed to != json::type::Null
in the handler lambda, if you do
return value_item
withvalue_time
being a listcrow::json::wvalue
object, you get nothing, it only works if you doreturn crow::response(value_item)
.This is also true for all other non object types.
This is the code I used
The text was updated successfully, but these errors were encountered: