0

我正在尝试使用 curl 命令在我们的 Crafter 交付节点之一中重新索引 solr

curl "http://{hostname}:{port}/api/1/target/deploy/{environment}/{siteName}" -X POST -H "Content-Type: text/json" -d '{ "reprocess_all_files “: 真的 }'

并根据我们的配置更改 curl 命令 URL,但我收到错误 "{"message":"Content type 'text/json;charset=UTF-8' not supported"}"

任何建议将不胜感激。

4

1 回答 1

0

内容类型似乎是错误的,应该是application/json,不是text/json。文档似乎有错误。

于 2018-01-02T15:49:02.183 回答