~tristan957/harvest-almanac

2926de1c12272b2ceac980c53ae773fb1e936c0b — Tristan Partin 1 year, 9 months ago 791aa0f
harvest-glib: updated comment with solution
1 files changed, 3 insertions(+), 0 deletions(-)

M harvest-glib/harvest-api-client.c
M harvest-glib/harvest-api-client.c => harvest-glib/harvest-api-client.c +3 -0
@@ 190,6 190,9 @@ create_response(HarvestRequest *req, SoupMessage *msg)
	 * know that is not true. Returning raw strings and integers are valid JSON for instance.
	 * Although this is fine for this project, reusing the same code will need tweaking to handle
	 * all API cases mentioned in documentation.
	 *
	 * This could be easily remedied by a switch statement and do something different for simple
	 * types.
	 */
	if (err == NULL && body_type != G_TYPE_NONE) {
		g_autoptr(SoupBuffer) buf = soup_message_body_flatten(msg->response_body);