Skip to content
Snippets Groups Projects
  • Kurt Roeckx's avatar
    699f7767
    Return proper error in case of invalid UTF-8 in json_body · 699f7767
    Kurt Roeckx authored
    json_body is used in places that need authentication. In
    case an unknown field is set, Ruma doesn't parse the field
    and so doesn't give an error on invalid UTF-8. But Conduit
    has parsed and on error makes json_body None. Return an
    error to the client instead of generating an internal error.
    699f7767
    History
    Return proper error in case of invalid UTF-8 in json_body
    Kurt Roeckx authored
    json_body is used in places that need authentication. In
    case an unknown field is set, Ruma doesn't parse the field
    and so doesn't give an error on invalid UTF-8. But Conduit
    has parsed and on error makes json_body None. Return an
    error to the client instead of generating an internal error.