mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 01:43: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 {
|
||||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
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 {
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusOK,
|
||||
|
|
|
|||
Loading…
Reference in a new issue