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

Error in TMVCCustomAuthenticationMiddleware.SendResponse #63

Closed
chacalfloripa opened this issue Dec 27, 2016 · 0 comments
Closed

Error in TMVCCustomAuthenticationMiddleware.SendResponse #63

chacalfloripa opened this issue Dec 27, 2016 · 0 comments

Comments

@chacalfloripa
Copy link

In MVCFramework.Middleware.Authentication.pas at line 376 you are passing a parameter of type word to the format. The following line with error and with the solution.

Error: Context.Response.RawWebResponse.Content := Format(CONTENT_HTML_FORMAT, [HTTPStatus, Context.Config[TMVCConfigKey.ServerName]]);

Solution: Context.Response.RawWebResponse.Content := Format(CONTENT_HTML_FORMAT, [IntToStr(HTTPStatus), Context.Config[TMVCConfigKey.ServerName]]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants