瀏覽代碼

[DOCS] add -i flag to curl HEAD call

without -i you never see the status:200 or status:404 messages
Corey Daley 10 年之前
父節點
當前提交
366f01b4d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/indices/types-exists.asciidoc

+ 1 - 1
docs/reference/indices/types-exists.asciidoc

@@ -5,7 +5,7 @@ Used to check if a type/types exists in an index/indices.
 
 [source,js]
 --------------------------------------------------
-curl -XHEAD 'http://localhost:9200/twitter/tweet'
+curl -XHEAD -i 'http://localhost:9200/twitter/tweet'
 --------------------------------------------------
 
 The HTTP status code indicates if the type exists or not. A `404` means