Skip to content

General | Handle empty response body in endpoints#153

Merged
tom-ioki merged 3 commits into
mainfrom
handle-empty-response-bodies
Nov 18, 2022
Merged

General | Handle empty response body in endpoints#153
tom-ioki merged 3 commits into
mainfrom
handle-empty-response-bodies

Conversation

@tom-ioki

Copy link
Copy Markdown
Contributor

This PR will add a strategy for handling empty response bodies to create, delete and update endpoints.

Without this change, api requests that only return response headers will lead to the following error message:

lib/ioki/apis/endpoints/create.rb:43:in `call': undefined method `[]' for nil:NilClass (NoMethodError)

resolves #151

@tom-ioki
tom-ioki merged commit c357dd2 into main Nov 18, 2022
@tom-ioki
tom-ioki deleted the handle-empty-response-bodies branch November 18, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle empty response body

2 participants