mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Check if reverse proxy is correctly configured (#30890)
Follow #27011 Follow #30885 --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -39,7 +39,7 @@ func mockRequest(t *testing.T, reqPath string) *http.Request { | ||||
| 	} | ||||
| 	requestURL, err := url.Parse(path) | ||||
| 	assert.NoError(t, err) | ||||
| 	req := &http.Request{Method: method, URL: requestURL, Form: maps.Clone(requestURL.Query()), Header: http.Header{}} | ||||
| 	req := &http.Request{Method: method, Host: requestURL.Host, URL: requestURL, Form: maps.Clone(requestURL.Query()), Header: http.Header{}} | ||||
| 	req = req.WithContext(middleware.WithContextData(req.Context())) | ||||
| 	return req | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user