From 1432293735a0a8e480939816c26b20335d636a42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?=
 =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?=
 <erik@darapsa.co.id>
Date: Tue, 13 Jul 2021 18:21:33 +0800
Subject: Debugs Anteraja response

---
 anteraja.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/anteraja.c b/anteraja.c
index b903548..d7e66c8 100644
--- a/anteraja.c
+++ b/anteraja.c
@@ -1,3 +1,6 @@
+#ifdef DEBUG
+#include <stdio.h>
+#endif
 #include "shipping.h"
 #include "handler.h"
 
@@ -36,6 +39,10 @@ size_t anteraja_services_handle(const char *contents, size_t size, size_t nmemb,
 		struct pikul_services **services)
 {
 	size_t realsize = size * nmemb;
+#ifdef DEBUG
+	((char *)contents)[realsize] = '\0';
+	fprintf(stderr, "%s\n", contents);
+#endif
 	handle_services(contents, realsize, status_trail, (const char *[]){
 			"content",
 			"services",
-- 
cgit v1.2.3