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

Remove patched async-compression, disable compression for multipart responses instead #1749

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

SimonSapin
Copy link
Contributor

This is a different work-around for #1572.

The previous work-around required a [patch.crates-io] section in the root Cargo.toml. When the Router is used as a dependency, that root manifest is not ours so downstream users would need to apply the same patch to get the work-around.

This came up in the context of publish the Router to crates.io #491 but applies the same when the apollo-router crate is used as a git dependency.

@SimonSapin SimonSapin self-assigned this Sep 12, 2022
@SimonSapin SimonSapin added this to the v1.0.0-rc.0 milestone Sep 12, 2022
@github-actions

This comment has been minimized.

Copy link
Contributor

@o0Ignition0o o0Ignition0o left a comment

Choose a reason for hiding this comment

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

tiny nit: I think we're trying to use http::header::CONTENT_TYPE (cc @bnjjj)

the rest LGTM

@SimonSapin
Copy link
Contributor Author

Do we care about micro-optimizing code only used in tests?

@o0Ignition0o
Copy link
Contributor

I personally don’t ^^’

…esponses instead

This is a different work-around for #1572.

The previous work-around required a `[patch.crates-io]` section in the root `Cargo.toml`.
When the Router is used as a dependency, that root manifest is not ours
so downstream users would need to apply the same patch to get the work-around.

This came up in the context of publish the Router to crates.io
#491
but applies the same when the `apollo-router` crate is used as a git dependency.
@SimonSapin SimonSapin merged commit b694917 into main Sep 12, 2022
@SimonSapin SimonSapin deleted the simon/async-compression branch September 12, 2022 14:09
@SimonSapin SimonSapin mentioned this pull request Sep 12, 2022
@abernix abernix mentioned this pull request Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants