Permalink
Browse files

! over not

  • Loading branch information...
1 parent 506bb85 commit 8a478d8883121b4379682a57500fbe5ad7f6d99a @igrigorik igrigorik committed Jun 17, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/em-http/client.rb
  2. +1 −1 lib/em-http/http_connection.rb
View
@@ -154,7 +154,7 @@ def build_request
head['host'] ||= encode_host
# Set the User-Agent if it hasn't been specified
- if not head.key?('user-agent')
+ if !head.key?('user-agent')
head['user-agent'] = "EventMachine HttpClient"
elsif head['user-agent'].nil?
head.delete('user-agent')
@@ -184,7 +184,7 @@ def send_request(head, body)
end
# Set content-type header if missing and body is a Ruby hash
- if not head['content-type'] and @req.body.is_a? Hash
+ if !head['content-type'] and @req.body.is_a? Hash
head['content-type'] = 'application/x-www-form-urlencoded'
end
@@ -121,7 +121,7 @@ def post_init
end
@p.on_message_complete = proc do
- if not client.continue?
+ if !client.continue?
c = @clients.shift
c.state = :finished
c.on_request_complete

0 comments on commit 8a478d8

Please sign in to comment.