We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7cca91 commit 752c1ccCopy full SHA for 752c1cc
1 file changed
src/index.js
@@ -33,7 +33,7 @@ const solrPost = config => path => async data => {
33
})
34
35
if (config.debug) {
36
- const dataPart = isEmptyObject(data) ? "" : ` -d ${JSON.stringify(data)}`
+ const dataPart = isEmptyObject(data) ? "" : ` -d '${JSON.stringify(data)}'`
37
console.debug(
38
`\n$ curl -X POST '${solrUrl}' -H 'Content-Type: application/json'${dataPart}\n`
39
)
0 commit comments