Chore: add some linters and clean up the code

This commit is contained in:
Dreamacro
2023-04-04 14:53:59 +08:00
parent a7252a1576
commit 5045ca4574
8 changed files with 18 additions and 12 deletions

View File

@ -30,7 +30,7 @@ func (hc *h2Conn) establishConn() error {
path := hc.cfg.Path
// TODO: connect use VMess Host instead of H2 Host
req := http.Request{
Method: "PUT",
Method: http.MethodPut,
Host: host,
URL: &url.URL{
Scheme: "https",