Skip to content
Browse files

Skip document validation when the content is empty

  • Loading branch information...
1 parent e28ebda commit a6c4feed464da43131b098f3defd8807e7382494 @vinibaggio vinibaggio committed with josevalim
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/zombie/history.coffee
View
3 src/zombie/history.coffee
@@ -166,7 +166,8 @@ class History
document.open()
document.write body
document.close()
- if document.documentElement
+
+ if document.documentElement or response.headers["content-length"] == '0'
browser.emit "loaded", browser
else
error = "Could not parse document at #{URL.format(url)}"

0 comments on commit a6c4fee

Please sign in to comment.
Something went wrong with that request. Please try again.