Fix HTTPS redirection
Fix HTTPS redirection

The "host" field is unnecessary. It can be extracted from "http_headers" easily.
We should not use a local (socket's) address for redirection. That may leak an internal IP address.
I do not apply the fix to mg_get_request_link() since I don't know its example of use.

GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver,GerHobbelt/civet-webserver