mirror of https://github.com/apache/lucene.git
add content type when using curl in the scripts: SOLR-250
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@543259 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9801dde57
commit
08e2f9613f
|
@ -123,7 +123,7 @@ logMessage started by $oldwhoami
|
|||
logMessage command: $0 $@
|
||||
|
||||
logMessage sending commit to Solr server at ${curl_url}
|
||||
rs=`curl ${curl_url} -s -d "<commit/>"`
|
||||
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to Solr server at ${curl_url}
|
||||
|
|
|
@ -123,7 +123,7 @@ logMessage started by $oldwhoami
|
|||
logMessage command: $0 $@
|
||||
|
||||
logMessage sending optimize to Solr server at ${curl_url}
|
||||
rs=`curl ${curl_url} -s -d "<optimize/>"`
|
||||
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<optimize/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to Solr server at ${curl_url}
|
||||
|
|
|
@ -108,7 +108,7 @@ start=`date +"%s"`
|
|||
logMessage started by $oldwhoami
|
||||
logMessage command: $0 $@
|
||||
|
||||
rs=`curl ${curl_url} -s -d "<commit/>"`
|
||||
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to Solr server at ${curl_url}
|
||||
|
|
|
@ -109,7 +109,7 @@ start=`date +"%s"`
|
|||
logMessage started by $oldwhoami
|
||||
logMessage command: $0 $@
|
||||
|
||||
rs=`curl ${curl_url} -s -d "<optimize/>"`
|
||||
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<optimize/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to Solr server at ${curl_url}
|
||||
|
|
|
@ -109,7 +109,7 @@ start=`date +"%s"`
|
|||
logMessage started by $oldwhoami
|
||||
logMessage command: $0 $@
|
||||
|
||||
rs=`curl ${curl_url} -s -d "<commit/>"`
|
||||
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
|
||||
if [[ $? != 0 ]]
|
||||
then
|
||||
logMessage failed to connect to Solr server at ${curl_url}
|
||||
|
|
Loading…
Reference in New Issue