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

probeservices: make sure we can get a compressed check-in response #2379

Closed
4 tasks done
Tracked by #1291 ...
bassosimone opened this issue Dec 7, 2022 · 1 comment
Closed
4 tasks done
Tracked by #1291 ...

Comments

@bassosimone
Copy link
Member

bassosimone commented Dec 7, 2022

This issue is about coordinating with @FedericoCeratto to ensure we can receive compressed check-in responses from the backend. To this end, on the probe side, we need to (1) send Accept-Encoding: gzip and (2) handle Content-Encoding: gzip. On the backend side, instead, we need to enable Nginx to compress responses.

  • Send Accept-Encoding: gzip
  • Enable compression on the backend side
  • Handle Content-Encoding: gzip
  • Adjust tests (if needed)
@bassosimone bassosimone self-assigned this Dec 7, 2022
bassosimone added a commit to ooni/probe-cli that referenced this issue Dec 9, 2022
This diff changes httpapi Endpoint and Descriptor such that the
logger field is part of the Endpoint rather than Descriptor.

This changes makes sense because the logger to use should be the
same for every API call. What matters, instead, is whether to log
bodies, which remains a property of the API Descriptor.

While I authored this diff originally as part of the work done
in #997, it seems it's
required in #1002 as well.

Hence, the reference issue is ooni/probe#2379.
bassosimone added a commit to ooni/probe-cli that referenced this issue Dec 9, 2022
This diff changes httpapi Endpoint and Descriptor such that the
logger field is part of the Endpoint rather than Descriptor.

This changes makes sense because the logger to use should be the
same for every API call. What matters, instead, is whether to log
bodies, which remains a property of the API Descriptor.

While I authored this diff originally as part of the work done
in #997, it seems it's
required in #1002 as well.

Hence, the reference issue is ooni/probe#2379.

While there, fix the go1.19 build workflow, which was broken
by using actions/setup-go rather than downloading go manually.
@bassosimone
Copy link
Member Author

All done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant