Skip to content

Is used express/fastify specific code but not nest js #2206

Open
@Maxttier

Description

@Maxttier

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

res.header(`Retry-After${getThrottlerSuffix(throttler.name)}`, timeToBlockExpire);

res.header is not a function. (In 'res.header(${this.headerPrefix}-Limit${getThrottlerSuffix(throttler.name)}, limit)', 'res.header' is undefined)
TypeError: res.header is not a function.

        res.header(`${this.headerPrefix}-Limit${getThrottlerSuffix(throttler.name)}`, limit);

Minimum reproduction code

res.header(`Retry-After${getThrottlerSuffix(throttler.name)}`, timeToBlockExpire);

Steps to reproduce

Expected behavior

use adapter's methods this.httpAdapder.setHeader(***), that code limit use only official adapters

Package version

latest

NestJS version

latest

Node.js version

20

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions