Skip to content

Commit 178994c

Browse files
committed
Updated to 4k as the default header length.
1 parent 3a276dc commit 178994c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

eoapi_notifier/outputs/cloudevents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CloudEventsConfig(BasePluginConfig):
2828
timeout: float = 30.0
2929
max_retries: int = 3
3030
retry_backoff: float = 1.0
31-
max_header_length: int = 2048
31+
max_header_length: int = 4096
3232

3333
@field_validator("endpoint")
3434
@classmethod
@@ -54,7 +54,7 @@ def get_sample_config(cls) -> dict[str, Any]:
5454
"timeout": 30.0,
5555
"max_retries": 3,
5656
"retry_backoff": 1.0,
57-
"max_header_length": 2048,
57+
"max_header_length": 4096,
5858
}
5959

6060
@classmethod

examples/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ outputs:
6161
# Optional: HTTP settings
6262
# timeout: 30.0 # CLOUDEVENTS_TIMEOUT
6363
# max_retries: 3 # CLOUDEVENTS_MAX_RETRIES
64-
# max_header_length: 2048 # CLOUDEVENTS_MAX_HEADER_LENGTH
64+
# max_header_length: 4096 # CLOUDEVENTS_MAX_HEADER_LENGTH
6565

6666
# Example with multiple sources and outputs
6767
# sources:

tests/test_cloudevents_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_default_configuration(self) -> None:
3434
assert config.event_type == "org.eoapi.stac"
3535
assert config.timeout == 30.0
3636
assert config.max_retries == 3
37-
assert config.max_header_length == 2048
37+
assert config.max_header_length == 4096
3838

3939
def test_endpoint_validation_error(self) -> None:
4040
"""Test endpoint validation."""

0 commit comments

Comments
 (0)