mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
995603b08c
This PR fixes a bug introduced in https://github.com/nushell/nushell/pull/8571. We were accidentally converting a `Result<Value, ShellError>` to JSON instead of converting a `Value`. The upshot was that we were sending JSON like `{"Ok":{"foo":"bar"}}` instead of `{"foo":"bar"}`. This was an easy bug to miss, because `ureq::send_json()` accepts any `impl serde::Serialize`. I've added a test to prevent regression. |
||
---|---|---|
.. | ||
http | ||
mod.rs | ||
port.rs |