special case 304

This commit is contained in:
Leo Horie 2016-09-12 10:26:08 -04:00
parent 5584abde1d
commit edea16575d

View file

@ -39,7 +39,7 @@ module.exports = function($window, Stream) {
if (xhr.readyState === 4) {
try {
var response = (args.extract !== extract) ? args.extract(xhr, args) : args.deserialize(args.extract(xhr, args))
if (xhr.status >= 200 && xhr.status < 300) {
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304) {
stream(cast(args.type, response))
}
else {