Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Skip document validation when the content is empty

  • Loading branch information...
commit a6c4feed464da43131b098f3defd8807e7382494 1 parent e28ebda
@vinibaggio vinibaggio authored josevalim committed
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)}"
Please sign in to comment.
Something went wrong with that request. Please try again.