Skip to content

Commit

Permalink
Merge pull request #1458 from dirkmueller/allow_http_HEAD
Browse files Browse the repository at this point in the history
Allow -X HEAD on osc api requests as well
  • Loading branch information
dmach committed Dec 20, 2023
2 parents 498a392 + c86093b commit 29e7dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -8747,8 +8747,8 @@ def do_importsrcpkg(self, subcmd, opts):
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',
Expand Down

0 comments on commit 29e7dee

Please sign in to comment.