mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
small optimization for status codes
This commit is contained in:
parent
f8a38661a8
commit
7735d7797c
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ module Fog
|
|||
@connection.write(request)
|
||||
|
||||
response = AWS::Response.new
|
||||
@connection.readline =~ /\AHTTP\/1.1 ([\d]{3})/
|
||||
response.status = $1.to_i
|
||||
response.status = @connection.readline[9..11].to_i
|
||||
while true
|
||||
data = @connection.readline
|
||||
if data == "\r\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue