+1
-1
main.go
+1
-1
main.go
···
190
190
// This allows first-time publishing to proceed without the git-pages server yet having
191
191
// a TLS certificate for the site host (which has a circular dependency on completion of
192
192
// first-time publishing).
193
-
newURL := *siteURL
193
+
newURL := *request.URL
194
194
newURL.Host = *serverFlag
195
195
request.URL = &newURL
196
196
request.Header.Set("Host", siteURL.Host)