Show
Ignore:
Timestamp:
08/29/08 15:31:14 (4 months ago)
Author:
lyokato
Message:

[lang/ruby/atomutil] ver 0.0.7

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/atomutil/trunk/lib/atomutil.rb

    r16857 r18421  
    5656    MAJOR = 0 
    5757    MINOR = 0 
    58     TINY  = 6 
     58    TINY  = 7 
    5959    STRING = [MAJOR, MINOR, TINY].join('.') 
    6060  end 
     
    16041604        case @res 
    16051605          when Net::HTTPSuccess 
    1606             warn "Bad Status Code: #{@res.code}" unless @res.class == Net::HTTPOK 
     1606            warn "Bad Status Code: #{@res.code}" unless @res.class == Net::HTTPOK || @res.class == Net::HTTPNoContent 
    16071607            unless @res.body.nil? 
    16081608              @rc = Atom::MediaType::ENTRY.is_a?(@res['Content-Type']) ? Atom::Entry.new(:stream => @res.body) : @res.body