Skip to content

fix: defer CAR response headers until after GetCAR succeeds

1ac242a
Select commit
Loading
Failed to load commit list.
Draft

fix(gateway): prevent blocked CIDs in CAR responses #1019

fix: defer CAR response headers until after GetCAR succeeds
1ac242a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Apr 5, 2026 in 0s

60.50% (-0.04%) compared to 15a5643

View this Pull Request on Codecov

60.50% (-0.04%) compared to 15a5643

Details

Codecov Report

❌ Patch coverage is 36.55172% with 92 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.50%. Comparing base (15a5643) to head (1ac242a).
⚠️ Report is 126 commits behind head on main.

Files with missing lines Patch % Lines
gateway/backend_blocks.go 37.73% 65 Missing and 1 partial ⚠️
gateway/backend_car_fetcher.go 0.00% 18 Missing ⚠️
gateway/errors.go 33.33% 6 Missing and 2 partials ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1019      +/-   ##
==========================================
- Coverage   60.53%   60.50%   -0.04%     
==========================================
  Files         267      267              
  Lines       33269    33349      +80     
==========================================
+ Hits        20140    20177      +37     
- Misses      11467    11509      +42     
- Partials     1662     1663       +1     
Files with missing lines Coverage Δ
gateway/handler_car.go 79.79% <100.00%> (ø)
gateway/errors.go 81.69% <33.33%> (-4.32%) ⬇️
gateway/backend_car_fetcher.go 69.15% <0.00%> (-9.57%) ⬇️
gateway/backend_blocks.go 42.51% <37.73%> (+0.42%) ⬆️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.