You need to turn off the nginx proxy buffering.
location /delay { proxy_pass http://127.0.0.1:8080; proxy_buffering off;}
and reload the config
nginx -s reload