Check for dictionary explicitly since we're accessing it as one

Fixes #36373.
This commit is contained in:
Seth House 2016-09-19 16:42:48 -06:00
parent b2365f553e
commit 0b63ed258f

View file

@ -863,7 +863,7 @@ def lowdata_fmt():
# if the data was sent as urlencoded, we need to make it a list.
# this is a very forgiving implementation as different clients set different
# headers for form encoded data (including charset or something similar)
if data and not isinstance(data, list):
if data and isinstance(data, collections.Mapping):
# Make the 'arg' param a list if not already
if 'arg' in data and not isinstance(data['arg'], list):
data['arg'] = [data['arg']]