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

supabase / storage / 27131902167

08 Jun 2026 10:35AM UTC coverage: 42.746% (-33.7%) from 76.41%
27131902167

Pull #1139

github

web-flow
Merge 4f7c37c69 into 74a0f6472
Pull Request #1139: feat: use @smithy/undici-http-handler for S3 client

2498 of 6435 branches covered (38.82%)

Branch coverage included in aggregate %.

10 of 24 new or added lines in 5 files covered. (41.67%)

3801 existing lines in 169 files now uncovered.

4895 of 10860 relevant lines covered (45.07%)

34.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

26.67
/src/http/plugins/empty-json-body.ts
1
import { FastifyInstance } from 'fastify'
2

3
export function registerJsonParserAllowingEmptyBody(fastify: FastifyInstance) {
4
  const defaultJsonParser = fastify.getDefaultJsonParser(
2✔
5
    fastify.initialConfig.onProtoPoisoning ?? 'error',
2!
6
    fastify.initialConfig.onConstructorPoisoning ?? 'error'
2!
7
  )
8

9
  fastify.addContentTypeParser('application/json', { parseAs: 'string' }, (request, body, done) => {
2✔
UNCOV
10
    if (!body) {
×
UNCOV
11
      done(null, null)
×
UNCOV
12
      return
×
13
    }
14

15
    const jsonBody = typeof body === 'string' ? body : body.toString('utf8')
×
16

UNCOV
17
    defaultJsonParser(request, jsonBody, done)
×
18
  })
19
}
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