mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
allow for charset (#1354)
This commit is contained in:
@@ -22,6 +22,8 @@ pub async fn get(#[arg] url: Url) -> Result<Value, Error> {
|
||||
.remove("Content-Type")
|
||||
.as_ref()
|
||||
.and_then(|h| h.to_str().ok())
|
||||
.and_then(|h| h.split(";").next())
|
||||
.map(|h| h.trim())
|
||||
{
|
||||
Some("application/json") => response
|
||||
.json()
|
||||
|
||||
Reference in New Issue
Block a user