Sha256: ceb4be870e0a4ba55eb93baef9a30b1e4e9f32fa2c905556ac5d35bf33d7095b

Contents?: true

Size: 685 Bytes

Versions: 30

Compression:

Stored size: 685 Bytes

Contents

# Copyright (c) 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Ensures that all depot_tools talks directly to appengine to avoid SNI."""

import urlparse


mapping = {
  'codereview.chromium.org': 'chromiumcodereview.appspot.com',
  'crashpad.chromium.org': 'crashpad-home.appspot.com',
  'bugs.chromium.org': 'monorail-prod.appspot.com',
  'bugs-staging.chromium.org': 'monorail-staging.appspot.com',
}


def MapUrl(url):
  parts = list(urlparse.urlsplit(url))
  new_netloc = mapping.get(parts[1])
  if new_netloc:
    parts[1] = new_netloc
  return urlparse.urlunsplit(parts)

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
libv8-7.8.279.23.0beta1 vendor/depot_tools/appengine_mapper.py
libv8-7.4.288.28.0beta1 vendor/depot_tools/appengine_mapper.py
libv8-7.3.492.27.3beta1 vendor/depot_tools/appengine_mapper.py
libv8-7.3.492.27.1 vendor/depot_tools/appengine_mapper.py
libv8-7.3.492.27.0 vendor/depot_tools/appengine_mapper.py
libv8-7.3.492.27.0beta1 vendor/depot_tools/appengine_mapper.py
libv8-6.7.288.46.1 vendor/depot_tools/appengine_mapper.py
libv8-6.7.288.46.0 vendor/depot_tools/appengine_mapper.py
libv8-6.7.288.46.1beta0 vendor/depot_tools/appengine_mapper.py
libv8-6.3.292.48.1 vendor/depot_tools/appengine_mapper.py
libv8-6.3.292.48.0 vendor/depot_tools/appengine_mapper.py
libv8-6.3.292.48.0beta2 vendor/depot_tools/appengine_mapper.py
libv8-6.3.292.48.0beta1 vendor/depot_tools/appengine_mapper.py
libv8-6.2.414.42.1 vendor/depot_tools/appengine_mapper.py
libv8-6.2.414.42.0 vendor/depot_tools/appengine_mapper.py
libv8-6.2.414.42.0beta1 vendor/depot_tools/appengine_mapper.py
libv8-6.0.286.54.3 vendor/depot_tools/appengine_mapper.py
libv8-6.0.286.54.2 vendor/depot_tools/appengine_mapper.py
libv8-6.0.286.54.1 vendor/depot_tools/appengine_mapper.py
libv8-6.0.286.54.0 vendor/depot_tools/appengine_mapper.py