for HEAD requests the sdk throw an error: for HEAD requests
What type of pull request are you creating?
[x] Bug Fix
[ ] Enhancement
[ ] Documentation
Description:
For HEAD requests (without body), I get an error:
Uncaught (in promise): SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
Stack:
export class ErrorHandler {
// ErrorObservable when rxjs version < rc.5
// ErrorObservable<string> when rxjs version = rc.5
// I'm leaving any for now to avoid breaking apps using both versions
public handleError(error: Response): any {
-> return Observable.throw(error.json().error || 'Server error');
}
}
for HEAD requests the sdk throw an error: for HEAD requests
What type of pull request are you creating?
Description:
For HEAD requests (without body), I get an error:
Stack: