Skip to content

Commit

Permalink
Merge pull request #1408 from operable/warehouse-change
Browse files Browse the repository at this point in the history
Temporarily point warehouse to static site
  • Loading branch information
nmohoric authored Feb 12, 2018
2 parents 92e459f + 48547b6 commit 8099c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cog/bundle/warehouse.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
defmodule Cog.Bundle.Warehouse do
@registry_url "https://warehouse.operable.io"
@registry_url "https://warehouse.cog.bot"

def get_config(bundle, version) do
headers = ["Accepts": "application/json"]
response = HTTPotion.get(@registry_url <> "/api/bundles/#{bundle}/#{version}", headers: headers)
response = HTTPotion.get(@registry_url <> "/api/bundles/#{bundle}/#{version}.json", headers: headers)

case response do
%HTTPotion.Response{status_code: 200, body: body} ->
Expand Down

0 comments on commit 8099c26

Please sign in to comment.