1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-15 00:36:11 +01:00

Merge pull request #1458 from dirkmueller/allow_http_HEAD

Allow -X HEAD on osc api requests as well
This commit is contained in:
Daniel Mach 2023-12-20 09:39:25 +01:00 committed by GitHub
commit 29e7deee62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8747,8 +8747,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print('Package \'%s\' imported successfully' % pac) print('Package \'%s\' imported successfully' % pac)
@cmdln.option('-X', '-m', '--method', default='GET', metavar='HTTP_METHOD', @cmdln.option('-X', '-m', '--method', default='GET', metavar='HTTP_METHOD',
choices=('GET', 'PUT', 'POST', 'DELETE'), choices=('HEAD', 'GET', 'PUT', 'POST', 'DELETE'),
help='specify HTTP method to use (GET|PUT|DELETE|POST)') help='specify HTTP method to use (HEAD|GET|PUT|DELETE|POST)')
@cmdln.option('-e', '--edit', default=None, action='store_true', @cmdln.option('-e', '--edit', default=None, action='store_true',
help='GET, edit and PUT the location') help='GET, edit and PUT the location')
@cmdln.option('-d', '--data', default=None, metavar='STRING', @cmdln.option('-d', '--data', default=None, metavar='STRING',