diff options
author | Amelia <47868520+knotteye@users.noreply.github.com> | 2021-10-12 01:14:11 +0000 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 438a39d3ad9cc217680b45fbaa61a6a21c163652 (patch) | |
tree | d8ce740b79e660545c85327aa38398a470fb3152 | |
parent | 0697042847041f61249886ab50f9b7f265591aed (diff) |
Trim strings before firing getactor requests
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1875,7 +1875,7 @@ func GetActor(id string) Actor { if ActorCache[actor+"@"+instance].Id != "" { respActor = ActorCache[actor+"@"+instance] } else { - req, err := http.NewRequest("GET", id, nil) + req, err := http.NewRequest("GET", strings.TrimSpace(id), nil) CheckError(err, "error with getting actor req") |