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

stacklok / toolhive / 20960284882 / 1
59%
main: 59%

Build:
DEFAULT BRANCH: main
Ran 13 Jan 2026 02:29PM UTC
Files 438
Run time 11s
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

13 Jan 2026 02:25PM UTC coverage: 58.034% (+0.04%) from 57.997%
20960284882.1

push

github

web-flow
Add request body size limit middleware function (#3114)

* Add request body size limit middleware function
Implement middleware func in pkg/api/server.go to enforce 1MB request body size limit
Requests exceeding this limit receive HTTP 413 response
Added comprehensive tests for boundary conditions
fixes #3054

Signed-off-by: muzman123 <muzammilmuhammad12@gmail.com>

* fix: added test for MaxBytesReader safety net behaviour,
edited requestBodySizeLimitMiddleware to send JSON formatted error instead of plain text,
ran task lint-fix on new/edited files

* fix: remove content-type logic, add diagnostic log, wrap MaxBytesReader with a 413 wrapper

* fix linting issues

---------

Signed-off-by: muzman123 <muzammilmuhammad12@gmail.com>
Co-authored-by: Don Browne <don@stacklok.com>
Co-authored-by: Don Browne <dmjb@users.noreply.github.com>

34374 of 59231 relevant lines covered (58.03%)

80.58 hits per line

Source Files on job 20960284882.1
  • Tree
  • List 438
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20960284882
  • 09e125dd on github
  • Prev Job for on main (#20956400454.1)
  • Next Job for on main (#20961566455.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc