Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ffd8972

Browse files
committed
only coding to the special case where post === false now
1 parent b9c0de3 commit ffd8972

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ng/httpBackend.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc
109109
}
110110
}
111111

112-
xhr.send(isDefined(post) ? post : null);
112+
if (post === false) {
113+
xhr.send(post);
114+
}
115+
else {
116+
xhr.send(post || null);
117+
}
113118
}
114119

115120
if (timeout > 0) {

0 commit comments

Comments
 (0)