Closed JeroenVinke closed 8 years ago
https://gist.run/?id=50c90cd2a73b45026209c46a3b949bd1
import {inject} from 'aurelia-framework'; import {HttpClient} from 'aurelia-http-client'; @inject(HttpClient) export class App { constructor(httpClient) { this.httpClient = httpClient; } attached() { let request = this.httpClient.createRequest('https://some.unexisting.domain.name.com') .asGet() .withParams({a: 'a', b: new Date()}); request.send(); } }
The b parameter is lost, while the a parameter is sent:
b
a
Or should we just serialize the date before passing it to .withParams() ?
.withParams()
Closing this since you should probably serialize the dates to format you desire before sending.
https://gist.run/?id=50c90cd2a73b45026209c46a3b949bd1
The
b
parameter is lost, while thea
parameter is sent: