mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-25 04:17:15 +00:00
style: format struct literals and whitespace
Clean up trailing braces, commas, and unnecessary blank lines in struct initializations across sub and network packages.
This commit is contained in:
@@ -47,7 +47,8 @@ func (c *AutoHttpsConn) readRequest() bool {
|
||||
resp := http.Response{
|
||||
Header: http.Header{},
|
||||
|
||||
StatusCode: http.StatusTemporaryRedirect}
|
||||
StatusCode: http.StatusTemporaryRedirect,
|
||||
}
|
||||
location := fmt.Sprintf("https://%v%v", request.Host, request.RequestURI)
|
||||
resp.Header.Set("Location", location)
|
||||
_ = resp.Write(c.Conn)
|
||||
|
||||
Reference in New Issue
Block a user