@autorest/python 6.14.2 → 6.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -144,6 +144,8 @@ class RawDeserializer:
|
|
|
144
144
|
# context otherwise.
|
|
145
145
|
_LOGGER.critical("Wasn't XML not JSON, failing")
|
|
146
146
|
raise DeserializationError("XML is invalid") from err
|
|
147
|
+
elif content_type.startswith("text/"):
|
|
148
|
+
return data_as_str
|
|
147
149
|
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
|
|
148
150
|
|
|
149
151
|
@classmethod
|