Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for copyURL (0.18 sec)

  1. internal/handlers/forwarder.go

    		}
    	}
    	return u
    }
    
    // copyURL provides update safe copy by avoiding shallow copying User field
    func copyURL(i *url.URL) *url.URL {
    	out := *i
    	if i.User != nil {
    		u := *i.User
    		out.User = &u
    	}
    	return &out
    }
    
    // Modify the request to handle the target URL
    func (f *Forwarder) modifyRequest(outReq *http.Request, target *url.URL) {
    	outReq.URL = copyURL(outReq.URL)
    	outReq.URL.Scheme = target.Scheme
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
Back to top