Skip to content

Commit

Permalink
fix: inboxURL duplicated
Browse files Browse the repository at this point in the history
  • Loading branch information
yukimochi committed Jun 11, 2023
1 parent 1716ec0 commit 2fbb4f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deliver/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func sendActivity(inboxURL string, KeyID string, body []byte, privateKey *rsa.Pr
errMsg := ""

if urlErr.Timeout() {
errMsg = inboxURL + ": Client.Timeout exceeded while awaiting headers"
errMsg = "Client.Timeout exceeded while awaiting headers"
} else {
errMsg = inboxURL + ": " + urlErr.Unwrap().Error()
errMsg = urlErr.Unwrap().Error()
}
return errors.New(inboxURL + ": " + errMsg)
}
Expand Down

0 comments on commit 2fbb4f0

Please sign in to comment.