• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

microlinkhq / html-get / 31421983036
98%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 07:02PM UTC
Jobs 1
Files 4
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 07:00PM UTC coverage: 97.472% (-0.1%) from 97.589%
31421983036

push

github

web-flow
fix: don't infer the date from response headers (#274)

* fix: derive injected date from `last-modified` only

`addHead` injected `<meta name="date">` built from `last-modified`, `date`
or `age`. Only `last-modified` says anything about the content: `date` is
when the response was generated and `age` how long it sat in a cache.

Any origin that does not send `last-modified` (most dynamic pages) got a
meta date equal to the moment of the request, and `metascraper-date` reads
`meta[name="date"]` first, so that value won as the page date:

    https://primary.miltoneducation.com -> date: <now>

The insert guard also tested `meta[property="article:published_time"]`
while inserting `meta[name="date"]`, so a page carrying its own date got a
second, header-derived one appended. It now matches what it inserts, plus
the `name` form `rewriteMetaTags` produces for `article:published_time`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1yARH3MU7jQYm5J8cAhtR

* fix: drop the date inferred from response headers

Review feedback: consumers run metascraper over the returned markup and it
has its own rules to find the date, so there is nothing to compensate for
here. Narrowing the injection to `last-modified` still invents metadata the
page never declared; remove the tag instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1yARH3MU7jQYm5J8cAhtR

* test: assert the date elements, not the serialized markup

Select `meta[name="date"]` and both `article:published_time` forms and
compare the parsed list, so restoring any header-derived tag fails.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E1yARH3MU7jQYm5J8cAhtR

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

200 of 213 branches covered (93.9%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 1 file covered. (100.0%)

764 of 776 relevant lines covered (98.45%)

29.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31421983036.1 10 Aug 2026 07:02PM UTC 4
97.47
GitHub Action Run
Source Files on build 31421983036
  • Tree
  • List 4
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31421983036
  • cea9616a on github
  • Prev Build on master (#31406280424)
  • Next Build on master (#31636490309)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc