Defer to vendored framework for endpoints 2
This change removes the custom endpoints handler for newer
versions of the framework. Previously, it would use the outdated
builtin endpoints library to try to server requests.
This change was introduced in the 1.9.49 SDK.
@@ -202,6 +202,10 @@ class Module(object):
handlers.append(
wsgi_handler.WSGIHandler(channel.application, url_pattern))
+ # Add a handler for Endpoints, only if version == 1.0
+ runtime_config = self._get_runtime_config()
+ for library in runtime_config.libraries:
+ if library.name == 'endpoints' and library.version == '1.0':
url_pattern = '/%s' % endpoints.API_SERVING_PATTERN
handlers.append(
wsgi_handler.WSGIHandler(
