fix: filename quoting # and update and unify surf dependency (#3524)

* fix: filenames with '#' don't get quoted #3496

* updating and unifying dependency surf

* adding hyper-client

Co-authored-by: ahkrr <alexhk@protonmail.com>
This commit is contained in:
ahkrr
2021-05-31 17:22:46 +02:00
committed by GitHub
parent 01f1208ad1
commit be9ebd9e18
3 changed files with 13 additions and 13 deletions

View File

@ -138,7 +138,7 @@ fn requote(orig_value: String) -> String {
let mut quotes = vec!['"', '\'', '`'];
let mut should_quote = false;
for c in value.chars() {
if c.is_whitespace() {
if c.is_whitespace() || c == '#' {
should_quote = true;
} else if let Some(index) = quotes.iter().position(|q| *q == c) {
should_quote = true;