diff options
Diffstat (limited to 'lib/mogilefs')
-rw-r--r-- | lib/mogilefs/new_file/common.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/new_file/common.rb b/lib/mogilefs/new_file/common.rb index c102901..44eee69 100644 --- a/lib/mogilefs/new_file/common.rb +++ b/lib/mogilefs/new_file/common.rb @@ -23,7 +23,7 @@ module MogileFS::NewFile::Common start_time = @opts[:start_time] and tout -= MogileFS.now - start_time set_socket_options(sock) case line = sock.timed_read(23, "", tout > 0.0 ? tout : 0) - when %r{^HTTP/\d\.\d\s+(2\d\d)\s} # success! + when %r{^HTTP/\d\.\d\s+(?:2\d\d)\s} # success! when nil raise EmptyResponseError, 'Unable to read response line from server' when %r{^HTTP/\d\.\d\s+(\d+)} |