Skip to content

Commit b6f2552

Browse files
committed
Revert "Proxito: inject hosting integration header for build.commands (#10219)"
This reverts commit 27215d2.
1 parent 4a43a8c commit b6f2552

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

readthedocs/proxito/middleware.py

-11
Original file line numberDiff line numberDiff line change
@@ -281,22 +281,11 @@ def process_request(self, request): # noqa
281281

282282
def add_hosting_integrations_headers(self, request, response):
283283
project_slug = getattr(request, "path_project_slug", "")
284-
version_slug = getattr(request, "path_version_slug", "")
285-
286284
if project_slug:
287285
project = Project.objects.get(slug=project_slug)
288286
if project.has_feature(Feature.HOSTING_INTEGRATIONS):
289287
response["X-RTD-Hosting-Integrations"] = "true"
290288

291-
# Inject the new integrations for versions using `build.commands`
292-
version = project.versions.filter(slug=version_slug).first()
293-
if (
294-
version
295-
and version.config
296-
and version.config.get("build", {}).get("commands", {}) != []
297-
):
298-
response["X-RTD-Hosting-Integrations"] = "true"
299-
300289
def process_response(self, request, response): # noqa
301290
self.add_proxito_headers(request, response)
302291
self.add_cache_headers(request, response)

0 commit comments

Comments
 (0)