У меня есть следующая команда curl
curl -k -H "Content-Type :json" -H "Authorization :Bearer eH8AIKuLdQfhy6kG5I0fPBK/abNJUN89C" -XPUT https://localhost:9200/college/faculty/1 -d "
{
\"name\":\"rmg\",
\"post\":\"professor\"
}"
но я получаю следующую ошибку, я не могу найти решение.
{"error":{"root_cause":[{"type":"content_type_header_exception","reason":"java.lang.IllegalArgumentException: only one Content-Type header should be provided"}],"type":"content_type_header_exception","reason":"java.lang.IllegalArgumentException: only one Content-Type header should be provided","caused_by":{"type":"illegal_argument_exception","reason":"only one Content-Type header should be provided"}},"status":400}