summaryrefslogtreecommitdiff
path: root/lib/soap/header
diff options
context:
space:
mode:
Diffstat (limited to 'lib/soap/header')
-rw-r--r--lib/soap/header/simplehandler.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/soap/header/simplehandler.rb b/lib/soap/header/simplehandler.rb
index 4c6b00ab96..7b206f77db 100644
--- a/lib/soap/header/simplehandler.rb
+++ b/lib/soap/header/simplehandler.rb
@@ -19,12 +19,12 @@ class SimpleHandler < SOAP::Header::Handler
super(elename)
end
- # Should return a Hash or nil.
+ # Should return a Hash, String or nil.
def on_simple_outbound
nil
end
- # Given header is a Hash or nil.
+ # Given header is a Hash, String or nil.
def on_simple_inbound(header, mustunderstand)
end
@@ -34,7 +34,7 @@ class SimpleHandler < SOAP::Header::Handler
end
def on_inbound(header, mustunderstand)
- h = header.to_obj
+ h = header.respond_to?(:to_obj) ? header.to_obj : header.data
on_simple_inbound(h, mustunderstand)
end
end