ultimate-sitemap-parser icon indicating copy to clipboard operation
ultimate-sitemap-parser copied to clipboard

If `Content-Type` header is set, verify it's the expected one

Open pypt opened this issue 7 years ago • 1 comments

For example, if Content-Type for /robots.txt is text/html (and not text/plain), this usually means that the file is missing (and instead a 404 page would get returned) so there's no need to attempt to parse it.

Same goes for XML files, plain text sitemaps, and gzipped XML / text sitemaps.

pypt avatar Nov 27 '18 10:11 pypt

Hey @pypt, I am a beginner here and I am looking for an good first issue. Seems this issue is good to start with. I have compiled and build it in my system. Now can you just brief more about this issue like how to solve. Thanks

tanweeralii avatar Mar 23 '21 21:03 tanweeralii