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:
commit
29e7deee62
@ -8747,8 +8747,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print('Package \'%s\' imported successfully' % pac)
|
||||
|
||||
@cmdln.option('-X', '-m', '--method', default='GET', metavar='HTTP_METHOD',
|
||||
choices=('GET', 'PUT', 'POST', 'DELETE'),
|
||||
help='specify HTTP method to use (GET|PUT|DELETE|POST)')
|
||||
choices=('HEAD', 'GET', 'PUT', 'POST', 'DELETE'),
|
||||
help='specify HTTP method to use (HEAD|GET|PUT|DELETE|POST)')
|
||||
@cmdln.option('-e', '--edit', default=None, action='store_true',
|
||||
help='GET, edit and PUT the location')
|
||||
@cmdln.option('-d', '--data', default=None, metavar='STRING',
|
||||
|
Loading…
Reference in New Issue
Block a user