Skip to content

Refactor decompression stream creation to remove code duplication#564

Merged
wesleytodd merged 1 commit intoexpressjs:masterfrom
Phillip9587:contentstream-switch-default
Jan 23, 2025
Merged

Refactor decompression stream creation to remove code duplication#564
wesleytodd merged 1 commit intoexpressjs:masterfrom
Phillip9587:contentstream-switch-default

Conversation

@Phillip9587
Copy link
Copy Markdown
Member

  • Modified the contentstream function to handle the 'identity' encoding directly by setting the length and returning the request object.
  • Created a new createDecompressionStream function that returns the appropriate decompression stream based on the encoding.
  • Removes code duplication

@Phillip9587 Phillip9587 force-pushed the contentstream-switch-default branch from 34b8c7d to 0aace96 Compare December 6, 2024 14:20
@Phillip9587 Phillip9587 marked this pull request as ready for review December 6, 2024 14:21
@wesleytodd wesleytodd merged commit e0f261e into expressjs:master Jan 23, 2025
@UlisesGascon UlisesGascon mentioned this pull request Jan 23, 2025
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.

2 participants