Upgrade req to 0.7.5 #1

Merged
Hermanverschooten merged 1 commit from upgrade-req-0.7 into main 2026-10-08 08:03:44 +00:00

Upgrades Req from 0.5.8 to 0.7.5 (two minor releases with breaking changes).

Impact on this project

GratwifiProbe.HTTP is the only caller. It uses redirect: false, retry: false, decode_body: false, receive_timeout and connect_options: [timeout: ...], and follows redirects itself. None of the breaking changes affect those:

  • 0.6.0: only JSON is decoded by default. We decode nothing through Req.
  • 0.6.1: response decompression is opt-in (compressed: true). Req no longer sends accept-encoding: gzip, so portals now send uncompressed pages. That's harmless, and the logged byte counts become the real page sizes.
  • 0.7.0: the Req.Finch adapter replaces run_finch, connect_options is still accepted, the {user, pass} :auth form is removed (unused), put_params overwrites (unused), and the GET→POST rewrite was reverted in 0.7.3.
  • 0.7.5: a 303 redirect switches to GET in Req's own redirect step (we don't use it).

Verified

  • mix compile --force --warnings-as-errors and mix test (72 tests), including the end-to-end portal flows that make real HTTP requests against a fake portal server.
  • On the phone (firmware with req 0.7.5): the RFC 8908 API read over HTTPS returns 200, and the plain-HTTP probe detects the portal redirect. The TUI on port 2222 works, and there are no crashes.

The patch bumps (beam_notify, nerves_ssh, finch) went to main separately in 614b23e.

Upgrades Req from 0.5.8 to 0.7.5 (two minor releases with breaking changes). ## Impact on this project `GratwifiProbe.HTTP` is the only caller. It uses `redirect: false`, `retry: false`, `decode_body: false`, `receive_timeout` and `connect_options: [timeout: ...]`, and follows redirects itself. None of the breaking changes affect those: - **0.6.0**: only JSON is decoded by default. We decode nothing through Req. - **0.6.1**: response decompression is opt-in (`compressed: true`). Req no longer sends `accept-encoding: gzip`, so portals now send uncompressed pages. That's harmless, and the logged byte counts become the real page sizes. - **0.7.0**: the `Req.Finch` adapter replaces `run_finch`, `connect_options` is still accepted, the `{user, pass}` `:auth` form is removed (unused), `put_params` overwrites (unused), and the GET→POST rewrite was reverted in 0.7.3. - **0.7.5**: a 303 redirect switches to GET in Req's own redirect step (we don't use it). ## Verified - `mix compile --force --warnings-as-errors` and `mix test` (72 tests), including the end-to-end portal flows that make real HTTP requests against a fake portal server. - On the phone (firmware with req 0.7.5): the RFC 8908 API read over HTTPS returns 200, and the plain-HTTP probe detects the portal redirect. The TUI on port 2222 works, and there are no crashes. The patch bumps (beam_notify, nerves_ssh, finch) went to `main` separately in 614b23e.
Upgrade req to 0.7.5
All checks were successful
Test / test (pull_request) Successful in 2m9s
8c1db83ffe
Two minor releases with breaking changes, none of which touch
GratwifiProbe.HTTP (redirect: false, retry: false, decode_body: false,
connect_options): JSON-only body decoding and opt-in response
decompression (0.6), the Req.Finch adapter, :auth forms and put_params
(0.7). Responses are no longer requested compressed, so portals send
plain pages.
Hermanverschooten deleted branch upgrade-req-0.7 2026-10-08 08:03:44 +00:00
Hermanverschooten referenced this pull request from a commit 2026-10-08 08:03:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GratWiFi/gratwifi_probe!1
No description provided.