aboutsummaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorTeddy Wing2017-05-09 00:17:37 +0200
committerTeddy Wing2017-05-09 00:26:21 +0200
commit07ef413cff05a8a692288d6226aefc7f5a81d374 (patch)
tree327c99f8f06a9d708791d97621716d3021ce59ca /TODO
parent3408f710221daece5d170dbd6a0dbfde64af8c39 (diff)
downloadHearURL-07ef413cff05a8a692288d6226aefc7f5a81d374.tar.bz2
open_steam(): Parse URL input
Parse the URL coming in from the TCP stream to check that it's a valid URL. This allows us to fail early and not try to open strings that are not URLs. Leverage the "url" crate to do the parsing. Return a `Box<Error>` from `open_stream()` to enable us to return either an `io` or a `Url` error in our `Result`. Remove the `trim_right()` call on `url` since it's now a `Url` type instead of a `String`, and as a result of parsing to a `Url`, it no longer has the problematic trailing newline.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions