Skip to content

Commit a6dbbab

Browse files
committed
fix bogus error set on url srv
1 parent 116d6ed commit a6dbbab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎go/chat/attachment_httpsrv.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,9 @@ func (r *AttachmentHTTPSrv) serve(w http.ResponseWriter, req *http.Request) {
574574
r.servePendingPreview(ctx, w, req)
575575
case r.attachmentPrefix:
576576
r.serveAttachment(ctx, w, req)
577+
default:
578+
r.makeError(ctx, w, http.StatusBadRequest, "invalid key prefix")
577579
}
578-
r.makeError(ctx, w, http.StatusBadRequest, "invalid key prefix")
579580
}
580581

581582
// Sign implements github.com/keybase/go/chat/s3.Signer interface.

0 commit comments

Comments
 (0)