The following location doesn't append '&heartbeat=5000' to the proxied upstream url (confirmed by examining the upstream server log).
The location is being processed as expected, as confirmed by the presence of the X-Checkpoint header in the response.
Using ngx_openresty/1.4.2.9
Can anyone explain why and the best way to implement this?
location ~ ^/(.*)/_changes {
proxy_pass http://127.0.0.1:5984;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Authenticated-User-ID $http_x_authenticated_user_id;
more_set_headers "X-Checkpoint: longpoll";
set $args $args&heartbeat=5000;
}