mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision a806d658df3bcc3f05675ad8d08a6e109177c6b0
This commit is contained in:
parent
af777fcf15
commit
23dfe7c81e
155 changed files with 2487 additions and 546 deletions
|
@ -100,9 +100,12 @@ class WrapperHandler(object):
|
|||
:param request: The Request being processed.
|
||||
"""
|
||||
path = self._get_path(filesystem_path(self.base_path, request, self.url_base), False)
|
||||
with open(path, "rb") as f:
|
||||
for key, value in read_script_metadata(f, js_meta_re):
|
||||
yield key, value
|
||||
try:
|
||||
with open(path, "rb") as f:
|
||||
for key, value in read_script_metadata(f, js_meta_re):
|
||||
yield key, value
|
||||
except IOError:
|
||||
raise HTTPException(404)
|
||||
|
||||
def _get_meta(self, request):
|
||||
"""Get an iterator over strings to inject into the wrapper document
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue