mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 15:14:44 +00:00
Merge pull request #330 from linkchecker/fix-sitemap
Fix sitemap parser
This commit is contained in:
commit
5b2b3613ec
3 changed files with 6 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class XmlTagUrlParser(object):
|
|||
self.url_data = url_data
|
||||
self.loc = False
|
||||
self.url = u""
|
||||
data = url_data.get_content()
|
||||
data = url_data.get_raw_content()
|
||||
isfinal = True
|
||||
try:
|
||||
self.parser.Parse(data, isfinal)
|
||||
|
|
|
|||
4
tests/checker/data/sitemap.xml.result
Normal file
4
tests/checker/data/sitemap.xml.result
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
url http://localhost:%(port)d/%(datadir)s/sitemap.xml
|
||||
cache key http://localhost:%(port)d/%(datadir)s/sitemap.xml
|
||||
real url http://localhost:%(port)d/%(datadir)s/sitemap.xml
|
||||
valid
|
||||
|
|
@ -26,6 +26,7 @@ class TestHttpMisc (HttpServerTest):
|
|||
@need_network
|
||||
def test_html (self):
|
||||
self.swf_test()
|
||||
self.file_test("sitemap.xml")
|
||||
|
||||
def swf_test (self):
|
||||
url = self.get_url(u"test.swf")
|
||||
|
|
|
|||
Loading…
Reference in a new issue