Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

Commit

Permalink
Also allow XHTML through, as per #252.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Sep 29, 2016
1 parent 5938479 commit a190cea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ object RecordRDD extends java.io.Serializable {
rdd.filter(r =>
r.getCrawlDate != null
&& (r.getMimeType == "text/html"
|| r.getMimeType == "application/xhtml+xml"
|| r.getUrl.endsWith("htm")
|| r.getUrl.endsWith("html"))
&& !r.getUrl.endsWith("robots.txt"))
Expand Down

0 comments on commit a190cea

Please sign in to comment.