about summary refs log tree commit homepage
path: root/lib/mogilefs/new_file/common.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/new_file/common.rb')
-rw-r--r--lib/mogilefs/new_file/common.rb2
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+)}