Skip to content

Commit

Permalink
added comment and removes typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ptroger committed Nov 13, 2024
1 parent 772826e commit 9c292e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/armory/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ async function bootstrap(): Promise<void> {
const logger = application.get<LoggerService>(LoggerService)
const port = configService.get('port')

// This middleware compresses the response body for requests that hits data endpoints.
// This is useful to reduce response time for large data sets.
application.use(
compression({
filter: (req) => req.path.startsWith('/v1/data')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('SDK Compression Interceptors', () => {
expect(JSON.parse(decompressed.toString())).toEqual({ test: 'data' })
})

it('should handle empty request body', async () => {
it('handles empty request body', async () => {
const config = {
method: 'post',
headers: {} as unknown as AxiosHeaders,
Expand Down

0 comments on commit 9c292e0

Please sign in to comment.