[Groonga-commit] groonga/gcs [master] Don't specify Host header explicitly

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 4日 (水) 23:04:00 JST


Kouhei Sutou	2012-07-04 23:04:00 +0900 (Wed, 04 Jul 2012)

  New Revision: fb1ee84e230ba63a21f397dd09b429ebc3e35473
  https://github.com/groonga/gcs/commit/fb1ee84e230ba63a21f397dd09b429ebc3e35473

  Log:
    Don't specify Host header explicitly
    
    Because gcs-import-examples assumes that search-example-... and
    doc-example-... can be resolved.

  Modified files:
    bin/gcs-import-examples

  Modified: bin/gcs-import-examples (+2 -2)
===================================================================
--- bin/gcs-import-examples    2012-07-04 23:01:22 +0900 (d0e431c)
+++ bin/gcs-import-examples    2012-07-04 23:04:00 +0900 (86e8b3f)
@@ -58,7 +58,7 @@ do
     fi
 done
 
-curl -X POST --upload-file $sdf_path --header "Content-Type: application/json" -H "Host: doc-example-00000000000000000000000000.localhost" http://127.0.0.1:7575/2011-02-01/documents/batch
+curl -X POST --upload-file $sdf_path --header "Content-Type: application/json" http://doc-example-00000000000000000000000000.localhost:7575/2011-02-01/documents/batch
 echo
 
 echo
@@ -68,7 +68,7 @@ cat <<EOT
 
 Now you can try searching by
 
-$ curl -H "Host: search-example-00000000000000000000000000.localhost" "http://127.0.0.1:7575/2011-02-01/search?q=Tokyo"
+$ curl "http://search-example-00000000000000000000000000.localhost:7575/2011-02-01/search?q=Tokyo"
 
 or, open
 http://127.0.0.1:7575
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index