aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ievkit
diff options
context:
space:
mode:
authorLuc Donnet2015-04-28 11:33:47 +0200
committerLuc Donnet2015-04-28 11:33:47 +0200
commit7176c219b37ba337c83fc853f1efecb6fd7786f6 (patch)
tree690eaffd8825ce026538838ad7f1f54b88567d43 /lib/ievkit
parent65c184fd0408f5f1d2eec6891cfdf918eb7c8b3b (diff)
downloadchouette-core-7176c219b37ba337c83fc853f1efecb6fd7786f6.tar.bz2
Fix encoding problem for multipart request
Diffstat (limited to 'lib/ievkit')
-rw-r--r--lib/ievkit/serializer.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ievkit/serializer.rb b/lib/ievkit/serializer.rb
index 8110ab3b5..a0475cee5 100644
--- a/lib/ievkit/serializer.rb
+++ b/lib/ievkit/serializer.rb
@@ -61,7 +61,7 @@ module Ievkit
#
# Returns an encoded String.
def encode(data)
- @dump.call(encode_object(data))
+ data #@dump.call(encode_object(data))
end
alias dump encode
@@ -92,10 +92,8 @@ module Ievkit
when Date then hash[key] = value.to_time.utc.xmlschema
when Time then hash[key] = value.utc.xmlschema
when Hash then hash[key] = encode_hash(value)
- when UploadIO then hash[key] = value
end
end
- puts "hash #{hash.inspect}"
hash
end