Fix URLSearchParams formatting.

This commit is contained in:
Ms2ger 2015-04-16 16:48:16 +02:00
parent 0307caa4bb
commit 9df501afd9
3 changed files with 1 additions and 101 deletions

View file

@ -140,7 +140,7 @@ impl URLSearchParamsHelpers for URLSearchParams {
// Encode everything else using 'percented-encoded bytes'
// https://url.spec.whatwg.org/#percent-encode
a => format!("%{:X}", a).into_bytes(),
a => format!("%{:02X}", a).into_bytes(),
};
buf.push_all(&append);
}