Skip to content

Commit 3ce45fe

Browse files
bastienXWB
authored andcommitted
missing content type to req (#1523)
missing content type to req else error 406 `{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}`
1 parent 501c52c commit 3ce45fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/cookbook/aliased-indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fos_elastica:
4040
```
4141
4242
```bash
43-
$ curl -XPOST 'http://localhost:9200/_aliases' -d '
43+
$ curl -XPOST 'http://localhost:9200/_aliases' -H 'Content-Type: application/json' -d '
4444
{
4545
"actions" : [
4646
{ "add" : { "index" : "app", "alias" : "app_prod" } }

0 commit comments

Comments
 (0)