From dbc3cd24b66c7f55c555f55536e6a383b57e9be9 Mon Sep 17 00:00:00 2001 From: Russell Teabeault Date: Sat, 8 Feb 2014 10:29:24 -0700 Subject: [PATCH] issue #95 - get_repository_info(name) should pass the DEFAULT_ACCEPT_HEADER to nexus. --- lib/nexus_cli/mixins/repository_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nexus_cli/mixins/repository_actions.rb b/lib/nexus_cli/mixins/repository_actions.rb index 3a8b0d0..ad1b743 100644 --- a/lib/nexus_cli/mixins/repository_actions.rb +++ b/lib/nexus_cli/mixins/repository_actions.rb @@ -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