WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bececb2

Browse files
Merge pull request #409 from mozilla-it/SREIN-588-revert
Srein 588 revert
2 parents efd341f + 331ee19 commit bececb2

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

prod-refractr.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -854,17 +854,6 @@ refracts:
854854
- https://bugzil.la/form.foo: https://bugzilla.mozilla.org/form.foo
855855
- https://bugzil.la/glonk: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=glonk
856856

857-
# SREIN-588
858-
- dsts:
859-
- if: '$request_uri ~ ^/(.*)$'
860-
^/(.*)$: bugzilla.mozilla.org/$1
861-
- redirect: bugzilla.mozilla.org/
862-
srcs:
863-
- '*.bugzilla.mozilla.org'
864-
tests:
865-
- https://test.bugzilla.mozilla.org/foo: https://bugzilla.mozilla.org/foo
866-
- https://bug1245.bugzilla.mozilla.org/show_bug.cgi?id=4566: https://bugzilla.mozilla.org/show_bug.cgi?id=4566
867-
868857
# https://mozilla-hub.atlassian.net/browse/SVCSE-140
869858
- www.mozilla.org/: status.mozilla.org
870859
status: 302

refractr/validate.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ def add_hop(self, src, dst=None, status=None, ex=None):
7676

7777
class RefractrValidator:
7878
def __init__(self, netloc=None, early=False, verbose=False):
79-
try:
80-
# If we're already inside an event loop
81-
self._loop = asyncio.get_running_loop()
82-
except RuntimeError:
83-
# No running loop: create one and set it for this thread
84-
self._loop = asyncio.new_event_loop()
85-
asyncio.set_event_loop(self._loop)
79+
self._loop = asyncio.get_event_loop()
8680
self.netloc = netloc
8781
self.early = early
8882
self.verbose = verbose

0 commit comments

Comments
 (0)