Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Include query params into HttpService #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/src/services/http-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class HttpService {

requestImpl(url:string, method:RequestMethod, opt?: RequestOptionsArgs):Observable<Response>{
let headers = new Headers();
let options: RequestOptions = new BaseRequestOptions();
let options: RequestOptionsArgs = new BaseRequestOptions();
if (!opt) {
options.url = url;
options.method = method;
Expand All @@ -81,6 +81,8 @@ export class HttpService {
options.url = url;
options.method = method;
options.body = opt.body;
options.params = opt.params;
options.search = opt.search;
options.headers = opt.headers || headers;
options.withCredentials = false;
}
Expand Down