aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/urlsearchparams.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-04-16 16:48:16 +0200
committerMs2ger <ms2ger@gmail.com>2015-04-16 19:36:31 +0200
commit9df501afd97598853612f32cb0eebc0451a9c139 (patch)
tree1367d77cd82a7c3314c0caba72be263d520701ea /components/script/dom/urlsearchparams.rs
parent0307caa4bb850ace0fe68e9175ad763e28fc9af1 (diff)
downloadservo-9df501afd97598853612f32cb0eebc0451a9c139.tar.gz
servo-9df501afd97598853612f32cb0eebc0451a9c139.zip
Fix URLSearchParams formatting.
Diffstat (limited to 'components/script/dom/urlsearchparams.rs')
-rw-r--r--components/script/dom/urlsearchparams.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/urlsearchparams.rs b/components/script/dom/urlsearchparams.rs
index 0c234cb2664..1e418c4b6f8 100644
--- a/components/script/dom/urlsearchparams.rs
+++ b/components/script/dom/urlsearchparams.rs
@@ -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);
}