summaryrefslogtreecommitdiff
path: root/shopify.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-14 21:04:45 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-14 21:04:45 +0800
commit68d6d53ad97d3496a857ae28eb9c73c7cfaba69d (patch)
tree0a15ce251402f89714258a952071766fe5f66394 /shopify.c
parenta775ac24ac9b2b081300694085736d08f9ec8cf8 (diff)
Fix previous commit
Diffstat (limited to 'shopify.c')
-rw-r--r--shopify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shopify.c b/shopify.c
index e774996..7efa40d 100644
--- a/shopify.c
+++ b/shopify.c
@@ -223,7 +223,7 @@ enum MHD_Result shopify_respond(struct shopify_param params[], const char *url,
ret = redirect(decoded_host, app_id, resp, conn);
} else if (session && session->token) {
if (embedded) {
- int fd = open(toml_path, O_RDONLY);
+ int fd = open(html_path, O_RDONLY);
struct stat sb;
fstat(fd, &sb);
char index[sb.st_size + 1];
@@ -239,7 +239,7 @@ enum MHD_Result shopify_respond(struct shopify_param params[], const char *url,
} else {
const size_t decoded_host_len = strlen(decoded_host);
char *scopes = NULL;
- config_getscopes(html_path, &scopes);
+ config_getscopes(toml_path, &scopes);
const size_t scopes_len = strlen(scopes);
static const size_t nonce_len = 64;
char nonce[nonce_len + 1];