[PATCH 04/10] REST: Handle JSON requests

Stephen Finucane stephen at that.guru
Wed May 1 03:50:16 AEST 2019


On Tue, 2019-04-30 at 16:03 +1000, Daniel Axtens wrote:
> From: Stephen Finucane <stephen at that.guru>
> 
> This was raising an attribute error when switching tests to use JSON
> bodies instead of form-data.
> 
>   AttributeError: 'dict' object has no attribute '_mutable'
> 
> The easy fix is to check if it's a dictionary and avoid the mutability
> check if so.
> 
> Signed-off-by: Stephen Finucane <stephen at that.guru>
> (cherry picked from commit dc48fbce99efe7d13987a3f510f7dee389636eba
>  This is needed for JSON bodies sent by regular users, not just the
>  tests.)
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Applied.




More information about the Patchwork mailing list