Apache Lucene open-source search software
add content type when using curl in the scripts: SOLR-250
Yonik Seeley08e2f9613f19
diff --git a/src/scripts/abc b/src/scripts/abcindex 4f47b06d4bf..5d48415cdd1 100755--- a/src/scripts/abc+++ b/src/scripts/abc@@ -123,7 +123,7 @@ logMessage started by $oldwhoamilogMessage 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 ]]thenlogMessage failed to connect to Solr server at ${curl_url}diff --git a/src/scripts/abo b/src/scripts/aboindex 2906456f172..dc0c1678a69 100755--- a/src/scripts/abo+++ b/src/scripts/abo@@ -123,7 +123,7 @@ logMessage started by $oldwhoamilogMessage 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 ]]thenlogMessage failed to connect to Solr server at ${curl_url}diff --git a/src/scripts/commit b/src/scripts/commitindex 7355f7ed522..872e1cd260f 100755--- a/src/scripts/commit+++ b/src/scripts/commit@@ -108,7 +108,7 @@ start=`date +"%s"`logMessage started by $oldwhoamilogMessage 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 ]]thenlogMessage failed to connect to Solr server at ${curl_url}diff --git a/src/scripts/optimize b/src/scripts/optimizeindex 3cb451d8edd..446996e5d0d 100755--- a/src/scripts/optimize+++ b/src/scripts/optimize@@ -109,7 +109,7 @@ start=`date +"%s"`logMessage started by $oldwhoamilogMessage 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 ]]thenlogMessage failed to connect to Solr server at ${curl_url}diff --git a/src/scripts/readercycle b/src/scripts/readercycleindex b7a4d7c62c1..6a99d630de0 100755--- a/src/scripts/readercycle+++ b/src/scripts/readercycle@@ -109,7 +109,7 @@ start=`date +"%s"`logMessage started by $oldwhoamilogMessage 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 ]]thenlogMessage failed to connect to Solr server at ${curl_url}