In the case of Google, not at all:
$ curl -v https://google.com
[...]
< HTTP/2 301
< location: https://www.google.com/ $ curl -v https://google.com
[...]
< HTTP/2 301
< location: https://www.google.com/ $ curl -i https://google.com
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
...
EDIT: interesting that it responds with HTTP/2 in your case and HTTP/1.1 in mine, would need to look up why the responses are different.