From c04515daf5f734da245254b349fd0295df2b6f79 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 16 Feb 2021 16:12:38 +0100 Subject: [PATCH] fix tracking --- docker/nginx/conf.d/client.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 9d7b2317..fdcbb497 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -348,7 +348,7 @@ server { if skylink and ngx.status >= ngx.HTTP_OK and ngx.status < ngx.HTTP_SPECIAL_RESPONSE then local http = require("socket.http") local headers = { Cookie = ngx.req.get_headers()["Cookie"] } - local query = table.concat({ "status=" .. $status, "bytes=" .. $body_bytes_sent }, "&") + local query = table.concat({ "status=" .. ngx.status, "bytes=" .. ngx.body_bytes_sent }, "&") local ok, statusCode, headers, statusText = http.request { url = "http://accounts:3000/track/download/" .. skylink .. "?" .. query, method = "POST",