Browse Source

Fix: strings.ReplaceAll requires Go 1.12

Rod Hynes 6 years ago
parent
commit
893d139eed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      psiphon/net.go

+ 1 - 1
psiphon/net.go

@@ -535,7 +535,7 @@ func ResumeDownload(
 		// Redact URL from "net/http" error message.
 		if !GetEmitNetworkParameters() {
 			errStr := err.Error()
-			err = errors.New(strings.ReplaceAll(errStr, downloadURL, "[redacted]"))
+			err = errors.New(strings.Replace(errStr, downloadURL, "[redacted]", -1))
 		}
 
 		return 0, "", common.ContextError(err)