Reqwest: Crash with URLs containing `^`

Created on 18 Jan 2019  路  4Comments  路  Source: seanmonstar/reqwest

reqwest crashes with the following panic when given URLs containing the caret character:

thread 'reqwest-internal-sync-runtime' panicked at 'a parsed Url should always be a valid Uri: InvalidUri(InvalidUriChar)', libcore/result.rs:1009:5

Does this mean that clients of the crate should always check for unsafe characters before passing them to the library to avoid such panics?

bug upstream

All 4 comments

No, I believe such a panic is an actual bug in reqwest. I'll look into it.

This was fixed in http v0.1.16. Running cargo update -p http should fix anyone experiencing this.

Got this today trying to install rust behind a proxy, is rustup-init using the right version ?

@mmacedoeu looks like not, its lockfile sets http 0.1.13, before the fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theduke picture theduke  路  6Comments

dbrgn picture dbrgn  路  5Comments

kpcyrd picture kpcyrd  路  4Comments

AmarOk1412 picture AmarOk1412  路  5Comments

encombhat picture encombhat  路  6Comments