Skip to content

Commit

Permalink
send sk
Browse files Browse the repository at this point in the history
  • Loading branch information
benlund committed Oct 25, 2011
1 parent 3babd20 commit 0ad524b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
9 changes: 4 additions & 5 deletions lib/fz/numerics/cli.coffee
Expand Up @@ -179,8 +179,8 @@ class CLI
@json_mode = true @json_mode = true


error: (err) -> error: (err) ->
process.stderr.write('Error: ' + err) console.error('Error: ' + err)
process.stderr.write("\n") process.exit(1)


success: (data) -> success: (data) ->
if @json_mode if @json_mode
Expand Down Expand Up @@ -245,8 +245,7 @@ class CLI


connection: () -> connection: () ->
if !@key? if !@key?
console.error "No key or project set" this.error("No key or project set")
process.exit(1)
@conn ||= new Connection(@key) @conn ||= new Connection(@key)


version: () -> version: () ->
Expand Down Expand Up @@ -303,7 +302,7 @@ class CLI
stats emits the version data and stats whenever the stats change stats emits the version data and stats whenever the stats change
General options: General options:
-h JSON output -j JSON output @@??##todo
-h display this and exit -h display this and exit
-v(v) (extra) verbose logging -v(v) (extra) verbose logging
-V print version and exit -V print version and exit
Expand Down
9 changes: 4 additions & 5 deletions lib/fz/numerics/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/fz/numerics/connection.coffee
Expand Up @@ -184,7 +184,8 @@ class Connection
err = 'invalid server response' err = 'invalid server response'
done() done()


request.setHeader('X-Access-Key', @access_key.key) ##@@ todo -signing request.setHeader('X-Access-Key', @access_key.key)
request.setHeader('X-Secret-Key', @access_key.secret_key) ##@@ todo -- only if HTTPS!!!
if false ##@@ todo - support keep_alive if false ##@@ todo - support keep_alive
request.setHeader('Connection', 'Keep-Alive') request.setHeader('Connection', 'Keep-Alive')
else else
Expand Down
1 change: 1 addition & 0 deletions lib/fz/numerics/connection.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ad524b

Please sign in to comment.