Skip to content

Use :format => "plain" for newline-delimited output#15

Open
paulmakepeace wants to merge 2 commits intomrkamel:masterfrom
paulmakepeace:format-plain
Open

Use :format => "plain" for newline-delimited output#15
paulmakepeace wants to merge 2 commits intomrkamel:masterfrom
paulmakepeace:format-plain

Conversation

@paulmakepeace
Copy link
Contributor

The OpenStack Object Storage API allows the response body format to be given via an Accept header orformat parameter. So if the latter is given then don't set the Accept header. This replaces the json: false option.

(Didn't realize this possibility in a previous PR!)

The OpenStack Object Storage API allows the response body format to be given via an Accept header or`format` parameter. So if the latter is given then don't set the Accept header. This replaces the `json: false` option.
@maikonas
Copy link

#12 also introduces opts mutation, which doesn't work on constants.

following code breaks in 0.3.0

client_get_objects('container', {}, OPTIONS)
FrozenError: can't modify frozen Hash
    ../swift_client/lib/swift_client.rb:198:in `delete'

Would be nice to release this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants