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

[Actix-web integration] Router for known paths should return 200 on HEAD requests #2885

Open
adundovi opened this issue Aug 27, 2024 · 2 comments

Comments

@adundovi
Copy link

adundovi commented Aug 27, 2024

Describe the bug
As I pointed our here, it is strange that Leptos with the Actix integration returns 404 on a HEAD request (e.g. curl --head http://127.0.0.1:3000) while it should return 200. Why is this relevant? Services like UptimeRobot reports status "down" for such websites although they are not down. Also the Axum integration works fine, i.e., is inconsistent with the Actix one.

Leptos Dependencies
It can be reproduced with the current leptos-rs/start-actix repo (commit 54b5fb1).

To Reproduce
Steps to reproduce the behavior:

  1. Clone, compile and run leptos-rs/start-actix
  2. Run curl --head http://127.0.0.1:3000
  3. HTTP/1.1 404 Not Found is returned

Expected behavior
200 OK should appear.

@adundovi
Copy link
Author

It looks like an Actix-web issue: actix/actix-web#2702.

@luckynumberke7in
Copy link
Contributor

luckynumberke7in commented Aug 28, 2024 via email

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