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

400 error when running server #50

Open
Kuo-TingKai opened this issue Aug 1, 2022 · 1 comment
Open

400 error when running server #50

Kuo-TingKai opened this issue Aug 1, 2022 · 1 comment

Comments

@Kuo-TingKai
Copy link

I encountered the 400 bad request error when I submitted the sign-up information while running the server on WSL-2.

First I thought it was about accessment issue from wsl-2 to win10 but it was not.

Later I found that 400 error is usually due to too long header(too many caches and cookies) sent from client.

I solved this issue by opening incognitio mode but I still didn't know why I encountered 400 error when I first launched the server.

@25077667
Copy link
Contributor

Could you record the HTTP request for us?
It is not quite correct when it parses HTTP header in https://github.com/jserv/facebooc/blob/master/src/request.c

By the way, you also could try my version, which rewrote the HTTP request parser in standard (RFC-2616).
https://github.com/25077667/facebooc

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