aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2024-08-01 23:32:23 +0200
committerMatěj Cepl <mcepl@cepl.eu>2024-08-15 03:48:43 +0200
commit89ad13eff45e7e9a21715ff1bba20327efeeef45 (patch)
tree44f907b9360b194ec50dc0acb5dddcd366710d55
parent2e60fcb2815b85317ea5ee0911559a24d910d4f4 (diff)
downloadtmp-89ad13eff45e7e9a21715ff1bba20327efeeef45.tar.gz
fix: don't escaped URL but the plain text one
-rw-r--r--tmp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp.go b/tmp.go
index 2f2c4f2..4920075 100644
--- a/tmp.go
+++ b/tmp.go
@@ -104,7 +104,7 @@ func main() {
// Make target_URL into a safe URL
safeTargetURL := url.QueryEscape(targetURL)
safeTargetURL = strings.Replace(safeTargetURL, "%3A", ":", 1)
- fmt.Println(safeTargetURL)
+ fmt.Println(targetURL)
// curl -s 'http://is.gd/create.php?format=simple&url=www.example.com'
// http://is.gd/MOgh5q