1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Fix utf username.

This commit is contained in:
PlusMinus0 2020-05-10 22:19:40 +02:00
parent 0056400ca1
commit 6f084d7ea5
3 changed files with 22 additions and 3 deletions

View file

@ -1,4 +1,5 @@
use crate::protocol;
use crate::util::url_encode;
use byteorder::{BigEndian, ByteOrder};
use bytes::Bytes;
use futures::sync::{mpsc, oneshot};
@ -192,7 +193,7 @@ impl MercuryManager {
let header: protocol::mercury::Header = protobuf::parse_from_bytes(&header_data).unwrap();
let response = MercuryResponse {
uri: header.get_uri().to_owned(),
uri: url_encode(header.get_uri()).to_owned(),
status_code: header.get_status_code(),
payload: pending.parts,
};