Skip to content

client: always emit request_body_size in toCommandLineOptions() - #1599

Open
bpalermo wants to merge 1 commit into
envoyproxy:mainfrom
bpalermo:up/request-body-size-proto
Open

client: always emit request_body_size in toCommandLineOptions()#1599
bpalermo wants to merge 1 commit into
envoyproxy:mainfrom
bpalermo:up/request-body-size-proto

Conversation

@bpalermo

@bpalermo bpalermo commented Sep 7, 2026

Copy link
Copy Markdown

Description

This PR is related to #1606

request_options.request_body_size was only set inside the loop over the configured request headers, so --request-body-size without any --request-header was dropped from the CommandLineOptions proto, and therefore from executions routed through the gRPC service (--nighthawk-service). This hoists it out of the loop.

Notes for Reviewers

New test OptionsImplTest.RequestBodySizeIsEmittedWithoutRequestHeaders covers the proto round trip; //test:options_test passes. Version history updated.

request_options.request_body_size was only set inside the loop over the
configured request headers, so a --request-body-size without any
--request-header was dropped from the CommandLineOptions proto (and thus
from executions routed through the gRPC service). Hoist it out of the
loop and add a test.

Signed-off-by: Bruno Palermo <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant