summaryrefslogtreecommitdiff
path: root/shopify.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 15:31:08 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 15:31:08 +0800
commit4bdd0d67d7dfb3eb33b60f7a9eabd99cac4ca139 (patch)
tree5d939eeafda22d5ddab4648398f1fe02bc664d4a /shopify.c
parentf72fe1e2a222de9bafbcc4e8a49ee5e9779c02ac (diff)
Compare carrier service name
cause callback_url from them contains back slashes
Diffstat (limited to 'shopify.c')
-rw-r--r--shopify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shopify.c b/shopify.c
index e882fc5..a21e1f9 100644
--- a/shopify.c
+++ b/shopify.c
@@ -549,11 +549,11 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con,
json_object *service
= json_object_array_get_idx(services,
i);
- json_object *url = NULL;
+ json_object *name = NULL;
json_object_object_get_ex(service,
- "callback_url", &url);
- if (!strcmp(json_object_get_string(url),
- carrierservice->url)) {
+ "callback_url", &name);
+ if (!strcmp(json_object_get_string(name),
+ carrierservice->name)) {
exists = 1;
break;
}