lib/css_parser/parser.rb in css_parser-1.4.3 vs lib/css_parser/parser.rb in css_parser-1.4.4

- old
+ new

@@ -483,10 +483,10 @@ if res.code.to_i >= 400 @redirect_count = nil raise RemoteFileError if @options[:io_exceptions] return '', nil - elsif res.code.to_i == 301 or res.code.to_i == 302 + elsif res.code.to_i >= 300 and res.code.to_i < 400 if res.response['Location'] != nil return read_remote_file Addressable::URI.parse(URI::encode(res.response['Location'])) end end