Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit f30a284

Browse files
committed
accept not modified as succesful
1 parent 5d2814d commit f30a284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/hyper-operation/http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def send(method, url, options, block)
187187
xhr.onreadystatechange = function() {
188188
if(xhr.readyState === XMLHttpRequest.DONE) {
189189
self.$class().$decr_active_requests();
190-
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
190+
if ((xhr.status >= 200 && xhr.status < 300) || xhr.status === 304) {
191191
return #{succeed(`xhr.responseText`, `xhr.status`, `xhr`)};
192192
} else {
193193
return #{fail(`xhr`, `xhr.status`, `xhr.statusText`)};

0 commit comments

Comments
 (0)