summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shopify.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shopify.c b/shopify.c
index a8c2613..2769a7b 100644
--- a/shopify.c
+++ b/shopify.c
@@ -504,8 +504,8 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con,
header);
MHD_add_response_header(res, "Content-Type",
"application/json");
- ret = MHD_queue_response(con, MHD_HTTP_OK, res);
- break;
+ return MHD_queue_response(con, MHD_HTTP_OK,
+ res);
}
i = 0;
const struct shopify_carrierservice *carrierservice;
@@ -560,8 +560,8 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con,
header);
MHD_add_response_header(res, "Content-Type",
"application/json");
- ret = MHD_queue_response(con, MHD_HTTP_OK, res);
- break;
+ return MHD_queue_response(con, MHD_HTTP_OK,
+ res);
}
} else if (session && session->access_token) {
if (embedded) {