refactor($http): simplify buildUrl function

Closes #8955
This commit is contained in:
Pawel Kozlowski
2014-09-05 19:48:38 +02:00
committed by Caitlin Potter
parent e322cd9b3b
commit 0f3adece3b

View File

@@ -1060,7 +1060,7 @@ function $HttpProvider() {
if (isObject(v)) {
if (isDate(v)){
v = v.toISOString();
} else if (isObject(v)) {
} else {
v = toJson(v);
}
}