HN user

treeshateorcs

24 karma
Posts2
Comments18
View on HN
Vouch 5 months ago

this wouldn't have helped against the xz attack

you can redirect in QB. this is how i do it (from my config):

    def redirect(info: interceptor.Request):
        if info.request_url.host() == "en.m.wikipedia.org":
            new_url = QUrl(info.request_url)
            new_url.setHost("en.wikipedia.org")
            try:
                info.redirect(new_url)
            except interceptors.RedirectFailedException:
                pass