如何使用dakrone/clj-http客户端发送gzipped请求?到目前为止,我有:
(http/post <<REDACTED>>
{:body (->> <<REDACTED>>
cheshire.core/generate-string
.getBytes
clj-http.util/gzip)
:content-type "application/json"
:content-encoding "gzip"
:as :json})但是elasticsearch (在我的例子中是服务器)给出了500个错误的Illegal character ((CTRL-CHAR, code 31)): only regular white space。
有什么想法吗?
发布于 2018-09-22 16:34:14
我猜你需要在服务器上启用HTTP压缩,例如在Elasticsearch配置中:
http.compression: true https://stackoverflow.com/questions/52445444
复制相似问题