diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 17:19:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 17:19:59 +0800 |
commit | abda7366211a0edfe989325fb091850f9f89fc20 (patch) | |
tree | 481e73c5c018e71febc1f4feb5a6c486986d529e | |
parent | 88832e4a3fbc294260d98fde65749c7e56b9ec3d (diff) |
Expects the index to not need app URL any more
-rw-r--r-- | shopify.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -355,10 +355,10 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, char html[sb.st_size + 1]; read(fd, html, sb.st_size); close(fd); - const size_t index_len = sb.st_size - strlen("%s") * 4 - + api_key_len + host_len + app_url_len * 2; + const size_t index_len = sb.st_size - strlen("%s") * 2 + + api_key_len + host_len; char index[index_len + 1]; - sprintf(index, html, api_key, host, app_url, app_url); + sprintf(index, html, api_key, host); res = MHD_create_response_from_buffer(index_len, index, MHD_RESPMEM_MUST_COPY); MHD_add_response_header(res, "Content-Security-Policy", |