Allow stored session parameters to be overwritten in the registration request (#2309)
Allow stored session parameters to be overwritten in the registration request (#2309)

* Allow stored session parameters to be overwritten in the registration request

* Remove logging

* Close request body

* Use `httputil.UnmarshalJSON` as that should enforce UTF-8 correctness

* Return `M_NOT_JSON` on read error

* Whoops, return the value of `httputil.UnmarshalJSON`

* Remove redundant comment
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite