class Patron::Request

def buffer_size=(buffer_size)

def buffer_size=(buffer_size)
  if buffer_size != nil && buffer_size.to_i < 1
    raise ArgumentError, "Buffer size must be a positive integer greater than 0 or nil"
  end
  @buffer_size = buffer_size != nil ? buffer_size.to_i : nil
end