rclone/fs/rc/rcserver
Nick Craig-Wood a7689d7023 rcserver: fix 500 error when marshalling errors from core/command
Before this change attempting to return an error from core/command
failed with a 500 error and a message about unmarshable types.

This is because it was attempting to marshal the input parameters
which get _response added to them which contains an unmarshalable
field.

This was fixed by using the original parameters in the error response
rather than the one modified during the error handling.

This also adds end to end tests for the streaming facilities as used
in core/command.
2021-01-10 16:34:46 +00:00
..
testdata http: improved directory listing with new template from Caddy project 2020-05-08 16:15:21 +01:00
rcserver.go rcserver: fix 500 error when marshalling errors from core/command 2021-01-10 16:34:46 +00:00
rcserver_test.go rcserver: fix 500 error when marshalling errors from core/command 2021-01-10 16:34:46 +00:00