Skip to content

Commit

Permalink
missing content type to req (#1523)
Browse files Browse the repository at this point in the history
missing content type to req else error 406 `{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}`
  • Loading branch information
bastien authored and XWB committed May 29, 2019
1 parent 501c52c commit 3ce45fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/cookbook/aliased-indexes.md
Expand Up @@ -40,7 +40,7 @@ fos_elastica:
```

```bash
$ curl -XPOST 'http://localhost:9200/_aliases' -d '
$ curl -XPOST 'http://localhost:9200/_aliases' -H 'Content-Type: application/json' -d '
{
"actions" : [
{ "add" : { "index" : "app", "alias" : "app_prod" } }
Expand Down

0 comments on commit 3ce45fe

Please sign in to comment.