Integrated: network: only set Content-type for JSON requests

Erik Helin ehelin at openjdk.java.net
Mon Apr 19 08:59:25 UTC 2021


On Mon, 19 Apr 2021 08:37:15 GMT, Erik Helin <ehelin at openjdk.org> wrote:

> Hi all,
> 
> please review this small patch that makes `RestRequest` only set `Content-type` to `application/json` if the content actually is JSON �� 
> 
> Thanks,
> Erik

This pull request has now been integrated.

Changeset: 63a0d593
Author:    Erik Helin <ehelin at openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/63a0d593
Stats:     12 lines in 1 file changed: 7 ins; 0 del; 5 mod

network: only set Content-type for JSON requests

Reviewed-by: rwestberg

-------------

PR: https://git.openjdk.java.net/skara/pull/1124


More information about the skara-dev mailing list