aim42 / htmlSanityCheck

Standalone (batch- and command-line) and Gradle-plugin html sanity checker - detects missing images, dead links and cross-references, duplicate link targets (anchors) and the like.
Apache License 2.0
70 stars 47 forks source link

Tests: BrokenHttpLinksCheckerSpec is broken at Line 102 #306

Closed oliva123456 closed 1 year ago

oliva123456 commented 1 year ago

with the fix for issue#272 (https://github.com/aim42/htmlSanityCheck/issues/272) the testcase for valid URLs has been extended with the URL "https://douglascayers.com/2015/05/30/how-to-set-custom-java-path-after-installing-jdk-8/".

at least currently this URL does not return a http-code 200 anymore (as stated within issue#272), but: 404.

C:\Users\oi>curl -I https://douglascayers.com/2015/05/30/how-to-set-custom-java-path-after-installing-jdk-8/ HTTP/1.1 404 Not Found Server: nginx Date: Thu, 28 Sep 2023 05:58:05 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Strict-Transport-Security: max-age=31536000 Vary: Accept-Encoding X-hacker: Want root? Visit join.a8c.com/hacker and mention this header. Host-Header: WordPress.com Vary: accept, content-type, cookie Expires: Wed, 11 Jan 1984 05:00:00 GMT Cache-Control: no-cache, must-revalidate, max-age=60 X-ac: 3.vie _dca MISS

btw.: i did not run into the already mentioned issue: https://github.com/aim42/htmlSanityCheck/issues/294

oliva123456 commented 1 year ago

created pull-request: https://github.com/aim42/htmlSanityCheck/pull/307