mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 05:44:20 +00:00
bug 1006494 - SimpleServiceDiscovery shouldn't add a trailing slash to services' location r=mfinkle
This commit is contained in:
parent
cfdaa8975b
commit
8fe67c95cb
@ -57,11 +57,10 @@ var SimpleServiceDiscovery = {
|
||||
_searchRepeat: Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer),
|
||||
|
||||
_forceTrailingSlash: function(aURL) {
|
||||
// Some devices add the trailing '/' and some don't. Let's make sure
|
||||
// it's there for consistency.
|
||||
if (!aURL.endsWith("/")) {
|
||||
aURL += "/";
|
||||
}
|
||||
// Cleanup the URL to make it consistent across devices
|
||||
try {
|
||||
aURL = Services.io.newURI(aURL, null, null).spec;
|
||||
} catch(e) {}
|
||||
return aURL;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user