1
0
Fork 0

skip large file by treat it as empty file

pull/483/head
Fuyao Zhao 2017-06-01 17:43:03 +08:00 committed by Alan Li
parent b8ae04d56b
commit c810f49633
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class PhpDocumentLoader
$content = yield $this->contentRetriever->retrieve($uri);
$size = strlen($content);
if ($size > $limit) {
throw new ContentTooLargeException($uri, $size, $limit);
return $this->create($uri, "");
}
if (isset($this->documents[$uri])) {