diff options
Diffstat (limited to 'src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs')
-rw-r--r-- | src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs b/src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs index 3ca9964a..022cfb6a 100644 --- a/src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs +++ b/src/ProtocolBuffers.Serialization/Http/ServiceExtensions.cs @@ -3,7 +3,7 @@ using System.Text; using Google.ProtocolBuffers;
using System.IO;
-namespace Google.ProtocolBuffers.Serialization
+namespace Google.ProtocolBuffers.Serialization.Http
{
/// <summary>
/// Extensions for the IRpcServerStub
@@ -25,6 +25,7 @@ namespace Google.ProtocolBuffers.Serialization string contentType, Stream input, string responseType, Stream output)
{
ICodedInputStream codedInput = MessageFormatFactory.CreateInputStream(options, contentType, input);
+ codedInput.ReadMessageStart();
IMessageLite response = stub.CallMethod(methodName, codedInput, options.ExtensionRegistry);
response.WriteTo(options, responseType, output);
}
|