set content type on stream to avoid connection problems

set content type on stream to avoid connection problems
I was getting an error while posting queries to my Solr when the content type wasn't set.