Skip to content

Commit 6d385ee

Browse files
committed
fix(package): replaced the http with https version for the api
1 parent b10c26a commit 6d385ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/module/service/link-preview.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('MatLinkPreviewService', () => {
3333
backend.expectOne((req: HttpRequest<any>) => {
3434
const params = req.params;
3535

36-
return req.url === 'http://api.linkpreview.net/'
36+
return req.url === 'https://api.linkpreview.net/'
3737
&& req.method === 'GET'
3838
&& params.get('key') === '5b54e80a65c77848ceaa4630331e8384950e09d392365'
3939
&& params.get('q') === 'github.com';

src/module/service/mat-link-preview.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {LinkPreview} from '../..';
1010
export class MatLinkPreviewService implements OnDestroy {
1111

1212
private _accessKey = '5b54e80a65c77848ceaa4630331e8384950e09d392365';
13-
private _apiURL = 'http://api.linkpreview.net/';
13+
private _apiURL = 'https://api.linkpreview.net/';
1414
private _subscription: Subscription;
1515

1616
onLinkFound: EventEmitter<Array<Link>> = new EventEmitter<Array<Link>>();

0 commit comments

Comments
 (0)