-
Notifications
You must be signed in to change notification settings - Fork 33
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
logging broken requests #37
Comments
Thanks for opening the issue! As you can follow the thread on Starlet, there are two possible suggestions: Allow
|
note: original discussion started at: kazuho/Starlet#18 (comment)
Ordinary HTTP deamons (e.g. Apache) is capable of logging broken requests. For example when you send
a\r\n\rn
to Apache, it emits127.0.0.1 - - [02/Jan/2015:18:27:46 +0900] "a" 501 213 "-" "-"
to the access log.But logging such broken requests is impossible for PSGI-based standalone servers that rely on Plack middlewares for access logging, since the PSGI specification does not allow servers to push broken (or incomplete) requests to handlers.
Should the spec. be extended to allow Plack-based loggers to log broken requests?
The text was updated successfully, but these errors were encountered: