I have an nginx configuration resembling something like this:

```
# mysite.com nginx config
server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /usr/share/mysite.com/ui;
        index index.html;
        server_name lbhost;

        location /ads.txt { 
            alias /usr/share/mysite.com/ads.txt; 
        }

        location /api/ {
            proxy_pass       http://localhost:5000/api/;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   X-NginX-Proxy true;
            proxy_http_version 1.1;
            proxy_set_header   Upgrade $http_upgrade;
            proxy_set_header   Connection keep-alive;
            proxy_set_header   Host $host;
            proxy_cache_bypass $http_upgrade;
        }

        location / {
            proxy_pass http://localhost:4000;
        }
}

```

The load-balanced servers have a .NET Core web api and an Angular Universal UI. This seems to work pretty well, but

... the api proxy seems to work, as does the root paths, and (usually) the ads.txt file as well, but... if I do something like

```
ubuntu@my-host-name:~$ curl http://localhost/api/version

```

...from the local machine, I'll get a response like:

```
2020.5.13.4ubuntu@my-host-name:~$

```

... yet if I hit this endpoint from a browser, I get a completely empty page... even the source is empty. I would expect to see that text "2020.5.13.4" in the source document of the page at least.

How do I need to configure my nginx service to properly send responses?

**UPDATE**

Per request, here is the response with headers:

```
ubuntu@my-host-name:~$ curl -i http://localhost/api/version
HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Thu, 21 May 2020 17:00:37 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

2020.5.13.4ubuntu@my-host-name:~$

```

also, the access log reports as follows:

```
ip source redacted - - [21/May/2020:11:02:20 +0000] "GET /api/version HTTP/1.1" 200 21 "-" "curl/7.58.0"
ip source redacted - - [21/May/2020:11:04:05 +0000] "GET /api/version HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36"

```