browser: Fix crash when using HEAD on a page-matching URL
HEAD responses have no content, so it doesn't make sense to build Pages out of them.
This commit is contained in:
parent
677cc18524
commit
7d5835d84f
1 changed files with 2 additions and 0 deletions
|
|
@ -173,6 +173,8 @@ class URL(object):
|
||||||
"""
|
"""
|
||||||
if self.klass is None:
|
if self.klass is None:
|
||||||
return
|
return
|
||||||
|
if response.request.method == 'HEAD':
|
||||||
|
return
|
||||||
|
|
||||||
m = self.match(response.url)
|
m = self.match(response.url)
|
||||||
if m:
|
if m:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue