Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
abrgr committed Oct 9, 2015
1 parent 137e47e commit 945592d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apns/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def self.open_conn_with_proxy(host, port)
sock << "Proxy-Authorization: Basic #{["#{proxy_uri.user}:#{proxy_uri.password}"].pack("m").chomp}\r\n" if proxy_uri.user
sock << "\r\n"

buffer = Net.BufferedIO.new(sock)
buffer = Net::BufferedIO.new(sock)
response = Net::HTTPResponse.read_new(buffer)
if not response.is_a? Net::HTTPOK
raise SocketError.new("Proxy refused connection [#{response.code}]")
Expand Down

0 comments on commit 945592d

Please sign in to comment.