Sean Leavey
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
deletefb/tools/common.py
|
|
@ -78,7 +78,9 @@ def force_mobile(url): |
|
|
|
Force a url to use the mobile site. |
|
|
|
""" |
|
|
|
parsed = urlparse.urlparse(url) |
|
|
|
return urlparse.urlunparse((parsed.scheme, |
|
|
|
# Ensure a protocol is given (needed by selenium). |
|
|
|
scheme = parsed.scheme or "https" |
|
|
|
return urlparse.urlunparse((scheme, |
|
|
|
"mobile.facebook.com", |
|
|
|
parsed.path, |
|
|
|
parsed.params, |
|
|
|