Open mbtolou opened 1 year ago
Custom OptionsAttribute
class MyOptions : BeetleX.FastHttpApi.OptionsAttribute {
public override void SetResponse(HttpRequest request, HttpResponse response)
{
base.SetResponse(request, response);
}
}
In This Line :
convert :
if (line[0] == 'C' && line[5] == 'e' && line[1] == 'o' && line[2] == 'o' && line[3] == 'k' && line[4] == 'i')
{
HttpParse.AnalyzeCookie(line.Slice(8, line.Length - 8), cookies);
}
To
if ((line[0] == 'C' || line[0] == 'c' ) && line[5] == 'e' && line[1] == 'o' && line[2] == 'o' && line[3] == 'k' && line[4] == 'i')
{
HttpParse.AnalyzeCookie(line.Slice(8, line.Length - 8), cookies);
}
Fix Cookie Problem.
Hello.
You can see two other beetlex errors in the following repository:
CORS Origin does not work. The cookie parser does not work and you must call the parser before using it.
https://github.com/mbtolou/beetlex-error