Re: [pve-devel] [PATCH v2 proxmox-openid-rs] fix Open ID with Azure as provider

2022-04-01 Thread Mira Limbeck
On 4/1/22 11:32, Mira Limbeck wrote: Azure doesn't accept `Transfer-Encoding: chunked` on their token endpoint, but with the switch to ureq we always send requests with this set. Fix by switching to `Content-Length` in the header instead. ureq only sets `Transfer-Encoding: chunked` when the body

[pve-devel] [PATCH v2 proxmox-openid-rs] fix Open ID with Azure as provider

2022-04-01 Thread Mira Limbeck
Azure doesn't accept `Transfer-Encoding: chunked` on their token endpoint, but with the switch to ureq we always send requests with this set. Fix by switching to `Content-Length` in the header instead. ureq only sets `Transfer-Encoding: chunked` when the body length is not known beforehand, which