summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-05-22 18:22:21 +0100
committerNick White <git@njw.name>2020-05-22 18:22:21 +0100
commitc80b2b74037297f7a8be5ece015dbdbea2d170f6 (patch)
tree5b448260d0c0bb9e28b93727cabfbb1d36d3d2ae
parent519244c01ff6a5cd3550fc44656b6eb741b99a8a (diff)
Fix CheckQueue for LocalConnlocal
-rw-r--r--local.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/local.go b/local.go
index bc9fafb..5e21b19 100644
--- a/local.go
+++ b/local.go
@@ -81,6 +81,7 @@ func (a *LocalConn) CheckQueue(url string, timeout int64) (Qmsg, error) {
if err != nil && err != io.EOF {
return Qmsg{}, err
}
+ s = strings.TrimSpace(s)
return Qmsg{Body: s, Handle: s}, nil
}