-
Notifications
You must be signed in to change notification settings - Fork 2.3k
key.set_remote_data escapes spaces in Cache-Control metadata #2536
Comments
Agreed, encoding space as %20 does not seem correct. This seems to all system metadata, not only Cache-Control. When I tried to reproduce this, the bug only happens when the argument is
This is of course with Python 2 which has separate As a separate but related issue,
It seems that the original problem can be fixed simply by adding space to the string |
@opottone I'm using Python 2, but with Using byte strings instead does avoid the bug for me too, thanks. |
I ran into the same bug when trying to copy a key using using
I had to work around it by doing this:
|
I think setting metadata on buckets is escaping values a bit too aggressively.
Using
key.set_remote_metadata
:and then checking the headers:
That extra
%20
isn't right--I don't think spaces should be escaped here.The text was updated successfully, but these errors were encountered: