mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-12-06 19:16:28 +01:00
Fix bug on url building (#5)
* fix path_prefix prepend * set query * remove path_prefix from path * revert query set, remove debug * print debug * remove debug * cr fix * Add newline back. Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
This commit is contained in:
@@ -249,7 +249,8 @@ func RelativeUrl(in string) (newurl string) {
|
||||
segment_query := segment_url.Query()
|
||||
segment_query.Set("host", segment_url.Hostname())
|
||||
segment_url.RawQuery = segment_query.Encode()
|
||||
return path_prefix + segment_url.RequestURI()
|
||||
segment_url.Path = path_prefix + segment_url.Path
|
||||
return segment_url.RequestURI()
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user