Skip to content

Commit

Permalink
fix: Changed OL connections from http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusz-bak committed Dec 10, 2023
1 parent 381ae3c commit 7645419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/resources/open_library_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class OpenLibraryService {
required int limit,
required OLSearchType searchType,
}) async {
const baseUrl = 'http://openlibrary.org/';
const baseUrl = 'https://openlibrary.org/';

final searchTypeKey = searchType == OLSearchType.general
? 'q'
Expand All @@ -32,7 +32,7 @@ class OpenLibraryService {
}

Future<OLEditionResult> getEdition(String edition) async {
const baseUrl = 'http://openlibrary.org';
const baseUrl = 'https://openlibrary.org';

final response = await get(
Uri.parse(
Expand All @@ -43,7 +43,7 @@ class OpenLibraryService {
}

Future<OLWorkResult> getWork(String work) async {
const baseUrl = 'http://openlibrary.org';
const baseUrl = 'https://openlibrary.org';

final response = await get(
Uri.parse(
Expand Down

0 comments on commit 7645419

Please sign in to comment.