Skip to content

Commit

Permalink
Use api.annif.org via https to fix 405 response from POST to /suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Aug 22, 2023
1 parent 954ef5d commit ab48762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion annif_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import requests

# Default API base URL
API_BASE = 'http://api.annif.org/v1/'
API_BASE = 'https://api.annif.org/v1/'


class AnnifClient:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_annif_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_create_client_api_base():
def test_projects(client):
datafile = os.path.join(os.path.dirname(__file__), 'data/projects.json')
responses.add(responses.GET,
'http://api.annif.org/v1/projects',
'https://api.annif.org/v1/projects',
body=open(datafile).read())
result = client.projects
assert len(result) == 2

0 comments on commit ab48762

Please sign in to comment.