We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9c1c5f + 2157a3d commit 90d006cCopy full SHA for 90d006c
library/Solarium/Core/Client/Adapter/Curl.php
@@ -156,7 +156,11 @@ public function createHandle($request, $endpoint)
156
}
157
158
if (!isset($options['headers']['Content-Type'])) {
159
- $options['headers']['Content-Type'] = 'text/xml; charset=utf-8';
+ if($method == Request::METHOD_GET){
160
+ $options['headers']['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8';
161
+ } else {
162
+ $options['headers']['Content-Type'] = 'application/xml; charset=utf-8';
163
+ }
164
165
166
// Try endpoint authentication first, fallback to request for backwards compatibility
0 commit comments