File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -281,22 +281,11 @@ def process_request(self, request): # noqa
281
281
282
282
def add_hosting_integrations_headers (self , request , response ):
283
283
project_slug = getattr (request , "path_project_slug" , "" )
284
- version_slug = getattr (request , "path_version_slug" , "" )
285
-
286
284
if project_slug :
287
285
project = Project .objects .get (slug = project_slug )
288
286
if project .has_feature (Feature .HOSTING_INTEGRATIONS ):
289
287
response ["X-RTD-Hosting-Integrations" ] = "true"
290
288
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
-
300
289
def process_response (self , request , response ): # noqa
301
290
self .add_proxito_headers (request , response )
302
291
self .add_cache_headers (request , response )
You can’t perform that action at this time.
0 commit comments