Skip to content
Browse files

Cleanup trailing whitespace

  • Loading branch information...
1 parent ac14982 commit bc86cc2ec0ecad7b4edd9d8b94b8c07311def541 @sferik sferik committed
Showing with 12 additions and 12 deletions.
  1. +1 −1 Rakefile
  2. +2 −2 examples/fibered-http.rb
  3. +1 −1 lib/em-http/core_ext/bytesize.rb
  4. +1 −1 lib/em-http/http_status_codes.rb
  5. +5 −5 lib/em-http/version.rb
  6. +2 −2 spec/stallion.rb
View
2 Rakefile
@@ -7,4 +7,4 @@ desc "Run all RSpec tests"
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
-task :test => [:spec]
+task :test => [:spec]
View
4 examples/fibered-http.rb
@@ -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}"
View
2 lib/em-http/core_ext/bytesize.rb
@@ -3,4 +3,4 @@
class String
def bytesize; self.size; end
end
-end
+end
View
2 lib/em-http/http_status_codes.rb
@@ -54,4 +54,4 @@ module HttpStatus
510 => 'Not Extended'
}
end
-end
+end
View
10 lib/em-http/version.rb
@@ -1,5 +1,5 @@
-module EventMachine
- class HttpRequest
- VERSION = "1.1.0"
- end
-end
+module EventMachine
+ class HttpRequest
+ VERSION = "1.1.0"
+ end
+end
View
4 spec/stallion.rb
@@ -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"

0 comments on commit bc86cc2

Please sign in to comment.
Something went wrong with that request. Please try again.