Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1138

Show
Ignore:
Timestamp:
12/25/03 11:34:44 (5 years ago)
Author:
nahi
Message:

* Content-ID header might not exist.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/soap/mimemessage.rb

    r1132 r1138  
    131131 
    132132    def contentid 
    133       if @contentid == nil 
     133      if @contentid == nil and @headers.key?('content-id') 
    134134        @contentid = @headers['content-id'].str 
    135135        @contentid = $1 if @contentid =~ /^<(.+)>$/ 
  • trunk/lib/soap/rpc/proxy.rb

    r1126 r1138  
    136136        value.contentid = part.contentid 
    137137        obj = SOAPAttachment.new(value) 
    138         opt[:external_content][value.contentid] = obj 
     138        opt[:external_content][value.contentid] = obj if value.contentid 
    139139      end 
    140140      opt[:charset] = @mandatorycharset || 
  • trunk/lib/soap/rpc/router.rb

    r1126 r1138  
    126126        value.contentid = part.contentid 
    127127        obj = SOAPAttachment.new(value) 
    128         opt[:external_content][value.contentid] = obj 
     128        opt[:external_content][value.contentid] = obj if value.contentid 
    129129      end 
    130130      opt[:charset] = 
  • trunk/lib/soap/wsdlDriver.rb

    r1126 r1138  
    306306          value.contentid = part.contentid 
    307307          obj = SOAPAttachment.new(value) 
    308           opt[:external_content][value.contentid] = obj 
     308          opt[:external_content][value.contentid] = obj if value.contentid 
    309309        end 
    310310        opt[:charset] = @mandatorycharset ||