Closed 10xSebastian closed 5 years ago
Targeting 10.0.2 Backport as 9.4.4
In https://github.com/local-ch/lhc/releases/tag/v9.4.3 I introduced the assumption, that the passed body is always a Hash.
Turns out LHS passes LHS::Data and LHS::Record down to LHC as bodies.
This PR fixes the compatibility to LHS and allows custom structures to be passed, as long as they respond to as_json.
as_json
Targeting 10.0.2 Backport as 9.4.4
In https://github.com/local-ch/lhc/releases/tag/v9.4.3 I introduced the assumption, that the passed body is always a Hash.
Turns out LHS passes LHS::Data and LHS::Record down to LHC as bodies.
This PR fixes the compatibility to LHS and allows custom structures to be passed, as long as they respond to
as_json
.