We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nestjs-course-code/custom-decorator/src/my.decorator.ts
Line 7 in 556bb97
通过const request: Request = ctx.switchToHttp().getRequest();拿到的request中的属性都变成小写了
const request: Request = ctx.switchToHttp().getRequest();
request
所以应该是
return key ? request.headers[key.toLocaleLowerCase()] : request.headers;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
nestjs-course-code/custom-decorator/src/my.decorator.ts
Line 7 in 556bb97
通过
const request: Request = ctx.switchToHttp().getRequest();
拿到的request
中的属性都变成小写了所以应该是
The text was updated successfully, but these errors were encountered: