Seems that PR #20 breaks calling end points that have no parameters.
When doing so I get a NoMethodError: undefined method 'reduce' for nil:NilClass originating from operation_builder.rb:61:in strip_headers!
It seems that in that case operation_parameters == nil is not handled. Made a quick fix for myself to get things working again, setting operation_parameters to [] when nil
Although this patch makes thins work for me now, probably not the best method? After having a quick look at the code, I presume that strip_headers! may just return nil when operation_parameters == nil.
@telekid As the author of the PR, maybe you can have a look at this? Very much appreciated!
Seems that PR #20 breaks calling end points that have no parameters.
When doing so I get a
NoMethodError: undefined method 'reduce' for nil:NilClass
originating fromoperation_builder.rb:61:in strip_headers!
It seems that in that case
operation_parameters == nil
is not handled. Made a quick fix for myself to get things working again, settingoperation_parameters
to[]
whennil
Although this patch makes thins work for me now, probably not the best method? After having a quick look at the code, I presume that
strip_headers!
may just returnnil
whenoperation_parameters == nil
.@telekid As the author of the PR, maybe you can have a look at this? Very much appreciated!