Skip to content

Commit

Permalink
[Fix] 🐛 URL Replace Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed May 17, 2024
1 parent 76ee411 commit 4b98da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func replaceResBody(originalBody string, originalScheme string, originalHost str
} else {
originalDomain := fmt.Sprintf("%s://%s", originalScheme, originalHost)
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, BING_URL.String(), originalDomain)
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, EDGE_SVC_URL.Host, originalHost)
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, EDGE_SVC_URL.Host, originalDomain)
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, BING_SR_URT.String(), originalDomain)
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, BING_SOURCE_URL.String(), originalDomain+"/th")
modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, DISIGNER_CDN_URL.String(), originalDomain+"/designer/cdn")
Expand Down

0 comments on commit 4b98da1

Please sign in to comment.