aboutsummaryrefslogtreecommitdiff
path: root/internal/httputil/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/httputil/http.go')
-rw-r--r--internal/httputil/http.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/httputil/http.go b/internal/httputil/http.go
index a469c8ac..4527e2b9 100644
--- a/internal/httputil/http.go
+++ b/internal/httputil/http.go
@@ -23,6 +23,7 @@ import (
"net/url"
"strings"
+ "github.com/matrix-org/dendrite/userapi/api"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
)
@@ -72,6 +73,9 @@ func PostJSON(
var errorBody struct {
Message string `json:"message"`
}
+ if _, ok := response.(*api.PerformKeyBackupResponse); ok { // TODO: remove this, once cross-boundary errors are a thing
+ return nil
+ }
if msgerr := json.NewDecoder(res.Body).Decode(&errorBody); msgerr == nil {
return fmt.Errorf("internal API: %d from %s: %s", res.StatusCode, apiURL, errorBody.Message)
}