Skip to content

Commit

Permalink
fix(package): replaced the http with https version for the api
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Aug 2, 2018
1 parent b10c26a commit 6d385ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/module/service/link-preview.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('MatLinkPreviewService', () => {
backend.expectOne((req: HttpRequest<any>) => {
const params = req.params;

return req.url === 'http://api.linkpreview.net/'
return req.url === 'https://api.linkpreview.net/'
&& req.method === 'GET'
&& params.get('key') === '5b54e80a65c77848ceaa4630331e8384950e09d392365'
&& params.get('q') === 'github.com';
Expand Down
2 changes: 1 addition & 1 deletion src/module/service/mat-link-preview.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {LinkPreview} from '../..';
export class MatLinkPreviewService implements OnDestroy {

private _accessKey = '5b54e80a65c77848ceaa4630331e8384950e09d392365';
private _apiURL = 'http://api.linkpreview.net/';
private _apiURL = 'https://api.linkpreview.net/';
private _subscription: Subscription;

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

0 comments on commit 6d385ee

Please sign in to comment.