[Groonga-commit] groonga/gcs-console [master] Accept endpoint without scheme part (default=http://)

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 6 16:26:59 JST 2012


YUKI Hiroshi	2012-12-06 16:26:59 +0900 (Thu, 06 Dec 2012)

  New Revision: 4f8a366601e74881ba445b3a7e0bba4d9b902d68
  https://github.com/groonga/gcs-console/commit/4f8a366601e74881ba445b3a7e0bba4d9b902d68

  Log:
    Accept endpoint without scheme part (default=http://)

  Modified files:
    bin/gcs-console

  Modified: bin/gcs-console (+2 -3)
===================================================================
--- bin/gcs-console    2012-12-06 16:21:55 +0900 (6cebb9a)
+++ bin/gcs-console    2012-12-06 16:26:59 +0900 (2d317c1)
@@ -32,9 +32,8 @@ program
 
 app.set('port', program.port);
 
-if (!program.endpoint.match(/^http:\/\//)) {
-  console.log('Endpoint must start with "http://". For example, http://127.0.0.1.xip.io:7575. "' + program.endpoint + '" is given.');
-  process.exit(1);
+if (!program.endpoint.match(/^https?:\/\//)) {
+  program.endpoint = 'http://' + program.endpoint;
 }
 
 app.set('endpoint', program.endpoint);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index