Re: [PATCH uclient] uclient-fetch: allow to overwrite Content-Type header for POST

2021-06-20 Thread Andre Heider
On 19/06/2021 10:37, Baptiste Jonglez wrote: Hi, On 03-06-21, Andre Heider wrote: This is required by some APIs, e.g. matrix's media upload [0]. [0] https://matrix.org/docs/spec/client_server/latest#post-matrix-media-r0-upload @@ -484,6 +485,7 @@ static int usage(const char *progname)

Re: [PATCH uclient] uclient-fetch: allow to overwrite Content-Type header for POST

2021-06-19 Thread Baptiste Jonglez
Hi, On 03-06-21, Andre Heider wrote: > This is required by some APIs, e.g. matrix's media upload [0]. > > [0] > https://matrix.org/docs/spec/client_server/latest#post-matrix-media-r0-upload > @@ -484,6 +485,7 @@ static int usage(const char *progname) > " --user-agent | -U

Re: [PATCH uclient] uclient-fetch: allow to overwrite Content-Type header for POST

2021-06-03 Thread Vincent Wiemann
On 6/3/21 7:57 AM, Andre Heider wrote: This is required by some APIs, e.g. matrix's media upload [0]. [0] https://matrix.org/docs/spec/client_server/latest#post-matrix-media-r0-upload Signed-off-by: Andre Heider --- uclient-fetch.c | 11 +-- 1 file changed, 9 insertions(+), 2

Re: [PATCH uclient] uclient-fetch: allow to overwrite Content-Type header for POST

2021-06-03 Thread Vincent Wiemann
On 6/3/21 7:57 AM, Andre Heider wrote: This is required by some APIs, e.g. matrix's media upload [0]. [0] https://matrix.org/docs/spec/client_server/latest#post-matrix-media-r0-upload Signed-off-by: Andre Heider --- uclient-fetch.c | 11 +-- 1 file changed, 9 insertions(+), 2

[PATCH uclient] uclient-fetch: allow to overwrite Content-Type header for POST

2021-06-03 Thread Andre Heider
This is required by some APIs, e.g. matrix's media upload [0]. [0] https://matrix.org/docs/spec/client_server/latest#post-matrix-media-r0-upload Signed-off-by: Andre Heider --- uclient-fetch.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/uclient-fetch.c