@ -13,7 +13,6 @@ import (
"errors"
"errors"
"fmt"
"fmt"
"io"
"io"
"io/ioutil"
"net"
"net"
"net/http"
"net/http"
"net/http/httputil"
"net/http/httputil"
@ -1708,7 +1707,7 @@ func (h *Handler) serveTKADisable(w http.ResponseWriter, r *http.Request) {
}
}
body := io . LimitReader ( r . Body , 1024 * 1024 )
body := io . LimitReader ( r . Body , 1024 * 1024 )
secret , err := io util . ReadAll ( body )
secret , err := io . ReadAll ( body )
if err != nil {
if err != nil {
http . Error ( w , "reading secret" , 400 )
http . Error ( w , "reading secret" , 400 )
return
return
@ -1781,7 +1780,7 @@ func (h *Handler) serveTKAAffectedSigs(w http.ResponseWriter, r *http.Request) {
http . Error ( w , "use POST" , http . StatusMethodNotAllowed )
http . Error ( w , "use POST" , http . StatusMethodNotAllowed )
return
return
}
}
keyID , err := io util . ReadAll ( http . MaxBytesReader ( w , r . Body , 2048 ) )
keyID , err := io . ReadAll ( http . MaxBytesReader ( w , r . Body , 2048 ) )
if err != nil {
if err != nil {
http . Error ( w , "reading body" , http . StatusBadRequest )
http . Error ( w , "reading body" , http . StatusBadRequest )
return
return
@ -1850,7 +1849,7 @@ func (h *Handler) serveTKACosignRecoveryAUM(w http.ResponseWriter, r *http.Reque
}
}
body := io . LimitReader ( r . Body , 1024 * 1024 )
body := io . LimitReader ( r . Body , 1024 * 1024 )
aumBytes , err := io util . ReadAll ( body )
aumBytes , err := io . ReadAll ( body )
if err != nil {
if err != nil {
http . Error ( w , "reading AUM" , http . StatusBadRequest )
http . Error ( w , "reading AUM" , http . StatusBadRequest )
return
return
@ -1881,7 +1880,7 @@ func (h *Handler) serveTKASubmitRecoveryAUM(w http.ResponseWriter, r *http.Reque
}
}
body := io . LimitReader ( r . Body , 1024 * 1024 )
body := io . LimitReader ( r . Body , 1024 * 1024 )
aumBytes , err := io util . ReadAll ( body )
aumBytes , err := io . ReadAll ( body )
if err != nil {
if err != nil {
http . Error ( w , "reading AUM" , http . StatusBadRequest )
http . Error ( w , "reading AUM" , http . StatusBadRequest )
return
return