-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
fix(koa): don't compress assets via send #789
Conversation
I guess I would ask is why is GraphiQL or anything in the chain doing the compression and not allowing any registered compress() type middleware do it?
… On Jun 27, 2018, at 10:54 AM, Benjie Gillam ***@***.***> wrote:
Koa sometimes seems to hang when loading GraphiQL; I've not been able to deliberately reproduce it. This seems to be solving it so far... Really we ought to replace sendFile with something Koa-friendly.
You can view, comment on, or merge this pull request online at:
#789 <#789>
Commit Summary
fix(koa): don't compress assets via send
File Changes
M src/postgraphile/http/createPostGraphileHttpRequestHandler.js <https://github.com/graphile/postgraphile/pull/789/files#diff-0> (3)
Patch Links:
https://github.com/graphile/postgraphile/pull/789.patch <https://github.com/graphile/postgraphile/pull/789.patch>
https://github.com/graphile/postgraphile/pull/789.diff <https://github.com/graphile/postgraphile/pull/789.diff>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#789>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB8M7TijEk1E_gwXaGMyNQrn5l_kYvZpks5uA6rLgaJpZM4U598R>.
|
Nothing's doing compression (except the Koa middleware of course); the issue is that |
Thanks for the explanation -- that makes a lot of sense! |
I think the same thing is happening for Fastify as it seems to skip the Fastify Routes and fastify.compress plugin don't seem to be able to compress the output from PostGraphile. |
Please submit a PR with a failing test for your setup. |
Hi, I'm so sorry but may I provide a link for the failing test which has comments regarding the issue instead? https://github.com/hengnee/rectify_fastify_postgraphile |
If you file a PR it’ll be addressed faster; but if you can’t, please file and issue with the above otherwise your request will be lost. |
Koa sometimes seems to hang when loading GraphiQL; I've not been able to deliberately reproduce it. This seems to be solving it so far... Really we ought to replace
sendFile
with something Koa-friendly.