Skip to content
Snippets Groups Projects

Encode job and analysis tag in the URLs created by gstlal servers

Merged Prathamesh Joshi requested to merge o4b-online-new-urls into o4b-online
3 files
+ 37
15
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -172,3 +172,15 @@ class HTTPServers(list):
except Exception as e:
if self.verbose:
print("failed: %s" % str(e), file=sys.stderr)
def get_rule_from_proxy_route(route):
# Method to trace back the rules defined
# by a PROXY method from the GET methods
# of the original application
if route.method != 'PROXY':
raise ValueError("The route provided is not a PROXY route")
# Make sure we only consider GET methods
# Make sure we don't create links back here
original_rules = [r.rule for r in route.config()['mountpoint.target'].routes if r.method == "GET" and r.rule not in ("/", "/index.html")]
return [route.config()['mountpoint.prefix'][:-1] + r for r in original_rules] # [:-1] removes a / at the end
Loading