Skip to content

Commit 70371ee

Browse files
committed
Reverted Accept header of Cat endpoints
1 parent 630cb0b commit 70371ee

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/Endpoints/Cat.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function aliases(array $params = [])
6666
}
6767
$url = $this->addQueryString($url, $params, ['format','local','h','help','s','v','expand_wildcards','pretty','human','error_trace','source','filter_path']);
6868
$headers = [
69-
'Accept' => 'application/json',
69+
'Accept' => 'text/plain,application/json',
7070
];
7171
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
7272
}
@@ -111,7 +111,7 @@ public function allocation(array $params = [])
111111
}
112112
$url = $this->addQueryString($url, $params, ['format','bytes','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
113113
$headers = [
114-
'Accept' => 'application/json',
114+
'Accept' => 'text/plain,application/json',
115115
];
116116
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
117117
}
@@ -155,7 +155,7 @@ public function componentTemplates(array $params = [])
155155
}
156156
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
157157
$headers = [
158-
'Accept' => 'application/json',
158+
'Accept' => 'text/plain,application/json',
159159
];
160160
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
161161
}
@@ -197,7 +197,7 @@ public function count(array $params = [])
197197
}
198198
$url = $this->addQueryString($url, $params, ['format','h','help','s','v','pretty','human','error_trace','source','filter_path']);
199199
$headers = [
200-
'Accept' => 'application/json',
200+
'Accept' => 'text/plain,application/json',
201201
];
202202
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
203203
}
@@ -240,7 +240,7 @@ public function fielddata(array $params = [])
240240
}
241241
$url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']);
242242
$headers = [
243-
'Accept' => 'application/json',
243+
'Accept' => 'text/plain,application/json',
244244
];
245245
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
246246
}
@@ -279,7 +279,7 @@ public function health(array $params = [])
279279

280280
$url = $this->addQueryString($url, $params, ['format','h','help','s','time','ts','v','pretty','human','error_trace','source','filter_path']);
281281
$headers = [
282-
'Accept' => 'application/json',
282+
'Accept' => 'text/plain,application/json',
283283
];
284284
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
285285
}
@@ -362,7 +362,7 @@ public function indices(array $params = [])
362362
}
363363
$url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','health','help','pri','s','time','v','include_unloaded_segments','expand_wildcards','pretty','human','error_trace','source','filter_path']);
364364
$headers = [
365-
'Accept' => 'application/json',
365+
'Accept' => 'text/plain,application/json',
366366
];
367367
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
368368
}
@@ -401,7 +401,7 @@ public function master(array $params = [])
401401

402402
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
403403
$headers = [
404-
'Accept' => 'application/json',
404+
'Accept' => 'text/plain,application/json',
405405
];
406406
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
407407
}
@@ -446,7 +446,7 @@ public function mlDataFrameAnalytics(array $params = [])
446446
}
447447
$url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
448448
$headers = [
449-
'Accept' => 'application/json',
449+
'Accept' => 'text/plain,application/json',
450450
];
451451
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
452452
}
@@ -490,7 +490,7 @@ public function mlDatafeeds(array $params = [])
490490
}
491491
$url = $this->addQueryString($url, $params, ['allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
492492
$headers = [
493-
'Accept' => 'application/json',
493+
'Accept' => 'text/plain,application/json',
494494
];
495495
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
496496
}
@@ -535,7 +535,7 @@ public function mlJobs(array $params = [])
535535
}
536536
$url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
537537
$headers = [
538-
'Accept' => 'application/json',
538+
'Accept' => 'text/plain,application/json',
539539
];
540540
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
541541
}
@@ -582,7 +582,7 @@ public function mlTrainedModels(array $params = [])
582582
}
583583
$url = $this->addQueryString($url, $params, ['allow_no_match','from','size','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
584584
$headers = [
585-
'Accept' => 'application/json',
585+
'Accept' => 'text/plain,application/json',
586586
];
587587
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
588588
}
@@ -621,7 +621,7 @@ public function nodeattrs(array $params = [])
621621

622622
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
623623
$headers = [
624-
'Accept' => 'application/json',
624+
'Accept' => 'text/plain,application/json',
625625
];
626626
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
627627
}
@@ -663,7 +663,7 @@ public function nodes(array $params = [])
663663

664664
$url = $this->addQueryString($url, $params, ['bytes','format','full_id','master_timeout','h','help','s','time','v','include_unloaded_segments','pretty','human','error_trace','source','filter_path']);
665665
$headers = [
666-
'Accept' => 'application/json',
666+
'Accept' => 'text/plain,application/json',
667667
];
668668
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
669669
}
@@ -703,7 +703,7 @@ public function pendingTasks(array $params = [])
703703

704704
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
705705
$headers = [
706-
'Accept' => 'application/json',
706+
'Accept' => 'text/plain,application/json',
707707
];
708708
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
709709
}
@@ -743,7 +743,7 @@ public function plugins(array $params = [])
743743

744744
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','include_bootstrap','s','v','pretty','human','error_trace','source','filter_path']);
745745
$headers = [
746-
'Accept' => 'application/json',
746+
'Accept' => 'text/plain,application/json',
747747
];
748748
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
749749
}
@@ -789,7 +789,7 @@ public function recovery(array $params = [])
789789
}
790790
$url = $this->addQueryString($url, $params, ['format','active_only','bytes','detailed','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
791791
$headers = [
792-
'Accept' => 'application/json',
792+
'Accept' => 'text/plain,application/json',
793793
];
794794
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
795795
}
@@ -828,7 +828,7 @@ public function repositories(array $params = [])
828828

829829
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
830830
$headers = [
831-
'Accept' => 'application/json',
831+
'Accept' => 'text/plain,application/json',
832832
];
833833
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
834834
}
@@ -871,7 +871,7 @@ public function segments(array $params = [])
871871
}
872872
$url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']);
873873
$headers = [
874-
'Accept' => 'application/json',
874+
'Accept' => 'text/plain,application/json',
875875
];
876876
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
877877
}
@@ -916,7 +916,7 @@ public function shards(array $params = [])
916916
}
917917
$url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
918918
$headers = [
919-
'Accept' => 'application/json',
919+
'Accept' => 'text/plain,application/json',
920920
];
921921
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
922922
}
@@ -961,7 +961,7 @@ public function snapshots(array $params = [])
961961
}
962962
$url = $this->addQueryString($url, $params, ['format','ignore_unavailable','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
963963
$headers = [
964-
'Accept' => 'application/json',
964+
'Accept' => 'text/plain,application/json',
965965
];
966966
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
967967
}
@@ -1004,7 +1004,7 @@ public function tasks(array $params = [])
10041004

10051005
$url = $this->addQueryString($url, $params, ['format','nodes','actions','detailed','parent_task_id','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
10061006
$headers = [
1007-
'Accept' => 'application/json',
1007+
'Accept' => 'text/plain,application/json',
10081008
];
10091009
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
10101010
}
@@ -1048,7 +1048,7 @@ public function templates(array $params = [])
10481048
}
10491049
$url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
10501050
$headers = [
1051-
'Accept' => 'application/json',
1051+
'Accept' => 'text/plain,application/json',
10521052
];
10531053
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
10541054
}
@@ -1094,7 +1094,7 @@ public function threadPool(array $params = [])
10941094
}
10951095
$url = $this->addQueryString($url, $params, ['format','time','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']);
10961096
$headers = [
1097-
'Accept' => 'application/json',
1097+
'Accept' => 'text/plain,application/json',
10981098
];
10991099
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
11001100
}
@@ -1140,7 +1140,7 @@ public function transforms(array $params = [])
11401140
}
11411141
$url = $this->addQueryString($url, $params, ['from','size','allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']);
11421142
$headers = [
1143-
'Accept' => 'application/json',
1143+
'Accept' => 'text/plain,application/json',
11441144
];
11451145
return $this->client->sendRequest($this->createRequest($method, $url, $headers, $params['body'] ?? null));
11461146
}

0 commit comments

Comments
 (0)