Default cgi to true when not given

bug/bundler_fix
James Lee 2013-02-26 13:33:54 -06:00
parent 764bbbb8e5
commit d463460da7
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class ClientRequest
attr_reader :opts
def initialize(opts={})
@cgi = opts['cgi']
@cgi = (opts['cgi'].nil? ? true : false)
@config = opts['client_config'] || {}
@connection = opts['connection']
@content_type = opts['ctype']