1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #3824 from AlanCoding/one_less_redirect

Avoid unnecessary OPTIONS redirect
This commit is contained in:
Ryan Petrello 2019-10-16 09:17:03 -04:00 committed by GitHub
commit 90c5efa336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ class ResourceOptionsParser(object):
def get_allowed_options(self):
self.allowed_options = self.page.connection.options(
self.page.endpoint + '1'
self.page.endpoint + '1/'
).headers.get('Allow', '').split(', ')
def build_list_actions(self):