url with spaces cause error with API
BUG REPORT
Stack Trace or error message
The following will result in in an error:
curl -i -A "Sia-Agent" "localhost:9980/renter/download/Randfile0_1GB1537297205?destination=/home/sevey/go/src/github.com/MSevey/make single file/downloads/Randfile0_1GB1537297205"
While the following will be successful:
curl -i -A "Sia-Agent" "localhost:9980/renter/download/Randfile0_1GB1537297205?destination=/home/sevey/Randfile0_1GB1537297205"
Expected Behavior
Sia API should be able to handle destination folders that have spaces in them
Observed Behavior
Sia API returns an error when there is a space in the destination folder name
How to reproduce it (as minimally and precisely as possible)
Try and download a file to a folder with a space in the name
Environment
- Sia version: v1.3.4
- OS: linux Ubuntu 16.04 LTS
Edited by Matthew Sevey