An Elixir toolkit for the AT Protocol. hexdocs.pm/atex
elixir bluesky atproto decentralization
25
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: raw_input not being set as request's body in `Atex.XRPC.post/3`

+8 -5
+4 -1
CHANGELOG.md
··· 6 6 and this project adheres to 7 7 [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 8 8 9 - <!--## [Unreleased]--> 9 + ## [Unreleased] 10 + 11 + - Fix `raw_input` not actually being set as the request's body in 12 + `Atex.XRPC.post/3` when providing a struct as input. 10 13 11 14 ## [0.9.1] - 2026-04-17 12 15
+4 -4
lib/atex/xrpc.ex
··· 169 169 170 170 def post(client, %{__struct__: module} = procedure, opts) do 171 171 has_raw_input? = 172 - if raw_input = procedure.raw_input do 173 - opts = Keyword.put(opts, :body, raw_input) 174 - 172 + if procedure.raw_input do 175 173 if Code.ensure_loaded?(module) and function_exported?(module, :content_type, 0) do 176 174 headers = Keyword.get(opts, :headers, []) 177 175 ··· 193 191 194 192 opts = 195 193 if has_raw_input? do 196 - put_params(opts, procedure) 194 + opts 195 + |> put_params(procedure) 196 + |> Keyword.put(:body, procedure.raw_input) 197 197 else 198 198 opts 199 199 |> put_params(procedure)