Closed cdent closed 1 year ago
This is a bit more complete, handles situations where a value is None (which won't encode). It is skipped:
kwargs = {key: quote(value, safe='')
for key, value in kwargs.iteritems()
if value}
Closing this issue now we've published v1.0.0 https://pypi.org/project/fastly/
If you provide a name for a
Model
, such as aHealthcheck
that has a space in it, the created URI will fail with a 404 as the space has not been escaped to%20
.The naive fix is something like the following in models.py:
This isn't entirely explicit though as the overlap between
self.attrs
as source for body data and URI data isn't entirely clear.