mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
fix build
This commit is contained in:
parent
b49f014421
commit
681d74635f
|
|
@ -40,7 +40,10 @@ func URIToUID(req *http.Request, cfg config.Dendrite) util.JSONResponse {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
body, _ := ioutil.ReadAll(resp.Body)
|
body, _ := ioutil.ReadAll(resp.Body)
|
||||||
respMap := map[string]interface{}{}
|
respMap := map[string]interface{}{}
|
||||||
json.Unmarshal(body, &respMap)
|
err := json.Unmarshal(body, &respMap)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
if userID, ok := respMap["userid"].(string); ok {
|
if userID, ok := respMap["userid"].(string); ok {
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusOK,
|
Code: http.StatusOK,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue