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

feat(http1): Add support for writing Trailer Fields #3375

Merged
merged 5 commits into from
Dec 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(http1): code review fixes
- remove unnecessary into_iter
  • Loading branch information
hjr3 committed Nov 11, 2023
commit 7a8eb3381387aed4f126a7c5fc366b8310b05525
2 changes: 1 addition & 1 deletion src/proto/h1/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Encoder {
let mut cur_name = None;
let mut allowed_trailers = HeaderMap::new();

for (opt_name, value) in trailers.into_iter() {
for (opt_name, value) in trailers {
if let Some(n) = opt_name {
cur_name = Some(n);
}
Expand Down
Loading