Skip to content

http1 expose ignore_invalid_headers_in_requests opt#3824

Merged
seanmonstar merged 1 commit into
hyperium:masterfrom
GlenDC:patch/ignore-invalid-header-request
Jan 14, 2025
Merged

http1 expose ignore_invalid_headers_in_requests opt#3824
seanmonstar merged 1 commit into
hyperium:masterfrom
GlenDC:patch/ignore-invalid-header-request

Conversation

@GlenDC

@GlenDC GlenDC commented Jan 9, 2025

Copy link
Copy Markdown
Contributor

Fixes #3825

@seanmonstar

Copy link
Copy Markdown
Member

This probably requires a newer version of httparse in the Cargo.toml, to the version that method was introduced.

@GlenDC GlenDC force-pushed the patch/ignore-invalid-header-request branch from 503f6c3 to 129a448 Compare January 9, 2025 22:05
@GlenDC

GlenDC commented Jan 9, 2025

Copy link
Copy Markdown
Contributor Author

This probably requires a newer version of httparse in the Cargo.toml, to the version that method was introduced.

Seems so: https://github.com/seanmonstar/httparse/releases/tag/v1.9.0

@GlenDC GlenDC force-pushed the patch/ignore-invalid-header-request branch from 129a448 to ac9d487 Compare January 9, 2025 22:06
Comment thread src/client/conn/http1.rs Outdated
@GlenDC GlenDC force-pushed the patch/ignore-invalid-header-request branch from ac9d487 to c521b50 Compare January 10, 2025 21:50
@GlenDC GlenDC requested a review from seanmonstar January 10, 2025 21:51
@GlenDC GlenDC force-pushed the patch/ignore-invalid-header-request branch from c521b50 to be248e7 Compare January 10, 2025 21:52
@GlenDC GlenDC force-pushed the patch/ignore-invalid-header-request branch from be248e7 to e8a4206 Compare January 10, 2025 21:56

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@seanmonstar seanmonstar merged commit 3817a79 into hyperium:master Jan 14, 2025
GlenDC added a commit to plabayo/rama that referenced this pull request Feb 20, 2025
- ext: add ext::on_informational() callback extension
  (<hyperium/hyper#3818>)
  (<hyperium/hyper@8ce1fcf>,
    closes <hyperium/hyper#2565>)
- server: add http1::Builder::ignore_invalid_headers(bool) option
  (<hyperium/hyper#3824>)
  (<hyperium/hyper@3817a79>)

- server:
    - start http1 header read timeout when conn is idle
      (<hyperium/hyper#3828>)
      (<hyperium/hyper@10b09ff>,
        closes <hyperium/hyper#3780>,
          <hyperium/hyper#3781>)
    - change max_local_error_reset_streams function to &mut self (#3820) (e981a91e)

- http2::Builder::max_local_error_reset_streams() now takes
  &mut self and returns &mut Self. In practice, this shouldn't break almost anyone.
  It was the wrong receiver and return types.
  (<hyperium/hyper@e981a91>)

Co-authored-by: Sean McArthur <sean@seanmonstar.com>
Co-authored-by: Finn Bear <finnbearlabs@gmail.com>
Co-authored-by: tottoto <tottotodev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants