That should work, whats the output you get using curl or httpie.
the same config works fine for me:
$ curl -I http://127.0.0.1:8080
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.0 (Ubuntu)
Date: Mon, 05 Jun 2017 12:45:13 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://127.0.0.1:8443/ <---------------------------------------
$ http -h http://127.0.0.1:8080
HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 194
Content-Type: text/html
Date: Mon, 05 Jun 2017 12:45:22 GMT
Location: https://127.0.0.1:8443/ <--------------------------------------
Server: nginx/1.10.0 (Ubuntu)
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx