Skip to content

Commit

Permalink
Merge pull request #97 from RallySoftware-cookbooks/issue-95
Browse files Browse the repository at this point in the history
issue #95 - get_repository_info(name) should pass the DEFAULT_ACCEPT_HEADER to nexus.
  • Loading branch information
KAllan357 committed Feb 11, 2014
2 parents 0af134e + dbc3cd2 commit 70b1b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nexus_cli/mixins/repository_actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def delete_repository(name)
# @return [String] A String of XML with information about the desired
# repository.
def get_repository_info(name)
response = nexus.get(nexus_url("service/local/repositories/#{sanitize_for_id(name)}"))
response = nexus.get(nexus_url("service/local/repositories/#{sanitize_for_id(name)}"), :header => DEFAULT_ACCEPT_HEADER)
case response.status
when 200
return response.content
Expand Down

0 comments on commit 70b1b2a

Please sign in to comment.