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

CROS an Cookie Problem #186

Open
mbtolou opened this issue Dec 11, 2022 · 2 comments
Open

CROS an Cookie Problem #186

mbtolou opened this issue Dec 11, 2022 · 2 comments

Comments

@mbtolou
Copy link

mbtolou commented Dec 11, 2022

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

@beetlex-io
Copy link
Owner

Custom OptionsAttribute

    class MyOptions : BeetleX.FastHttpApi.OptionsAttribute {
        public override void SetResponse(HttpRequest request, HttpResponse response)
        {
            base.SetResponse(request, response);
        }
    }

@mbtolou
Copy link
Author

mbtolou commented Dec 11, 2022

In This Line :

if (line[0] == 'C' && line[5] == 'e' && line[1] == 'o' && line[2] == 'o' && line[3] == 'k' && line[4] == 'i')

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.

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