Skip to content

Commit

Permalink
Cleanup trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 30, 2013
1 parent ac14982 commit bc86cc2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ desc "Run all RSpec tests"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec
task :test => [:spec]
task :test => [:spec]
4 changes: 2 additions & 2 deletions examples/fibered-http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ def async_fetch(url)
Fiber.new{

puts "Setting up HTTP request #1"
data = async_fetch('http://0.0.0.0/')
data = async_fetch('http://0.0.0.0/')
puts "Fetched page #1: #{data.response_header.status}"

puts "Setting up HTTP request #2"
data = async_fetch('http://www.yahoo.com/')
puts "Fetched page #2: #{data.response_header.status}"

puts "Setting up HTTP request #3"
data = async_fetch('http://non-existing.domain/')
puts "Fetched page #3: #{data.response_header.status}"
Expand Down
2 changes: 1 addition & 1 deletion lib/em-http/core_ext/bytesize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
class String
def bytesize; self.size; end
end
end
end
2 changes: 1 addition & 1 deletion lib/em-http/http_status_codes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ module HttpStatus
510 => 'Not Extended'
}
end
end
end
10 changes: 5 additions & 5 deletions lib/em-http/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module EventMachine
class HttpRequest
VERSION = "1.1.0"
end
end
module EventMachine
class HttpRequest
VERSION = "1.1.0"
end
end
4 changes: 2 additions & 2 deletions spec/stallion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ def self.call(env)

# Take the initial line from the upstream response
session.write client.gets

if proxy
session.write "X-Proxy-Auth: #{proxy}\r\n"
end

# What (absolute) uri was requested? Send it back in a header
session.write "X-The-Requested-URI: #{destination}\r\n"

Expand Down

0 comments on commit bc86cc2

Please sign in to comment.