Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept-Encoding: "*" doesn't work in tests #6

Open
talentlessguy opened this issue Jan 30, 2023 · 0 comments
Open

Accept-Encoding: "*" doesn't work in tests #6

talentlessguy opened this issue Jan 30, 2023 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@talentlessguy
Copy link
Member

it.only('accepts a single compression algorithm', async () => {
  const request = superdeno(compression({ path: 'LICENSE', compression: ['br'] }))

  await request.get('/').set('Accept-Encoding', '*').expect('Content-Encoding', 'br')
})

this test fails because it cannot find Content-Encoding header for some reason:

error: Error: expected "Content-Encoding" header field
      return new Error(`expected "${field}" header field`);

I'm not sure if this is a superdeno bug or the lib bug, because if you run example with * it works as intended

@talentlessguy talentlessguy added the bug Something isn't working label Jan 30, 2023
@talentlessguy talentlessguy added the help wanted Extra attention is needed label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant