Commit 52ae293
committed
fix: body encoding for rest transport
Basically just replace `json` argument with `data`
Apparently, the `json` parameter in requests.Session.request() method does not expect JSON string,
but expects python dictionary instead, which is not intuitive and does not even match the
documentation of the method: https://github.com/psf/requests/blob/master/requests/sessions.py#L483.
At the same time in the Quickstart, it is explicitly said that `json` parameter was added in
version `2.4.2` and expects python `dict`, while `data` argument can process raw encoded json
string.1 parent eaac3e6 commit 52ae293
File tree
1 file changed
+1
-1
lines changed- gapic/templates/%namespace/%name_%version/%sub/services/%service/transports
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments