You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
In ProtobufNetBodyDeserializer, take a look at line 59:
if (mediaRange.Type.Matches(Constants.ProtoBufContentType))
This line compares just the type (application), i.e. without the subtype, against the full constant (application/x-protobuf). It seems to me that this will always return false.
I noticed this because Nancy's Bind<> method was not deserializing the protobuf request body.
The text was updated successfully, but these errors were encountered:
Timovzl
changed the title
Content type comparison bug in ProtobufNetBodyDeserializer line 59?
(2.0.0-clinteastwood) Content type comparison bug in ProtobufNetBodyDeserializer line 59?
Dec 12, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
In ProtobufNetBodyDeserializer, take a look at line 59:
if (mediaRange.
Type
.Matches(Constants.
ProtoBufContentType
))
This line compares just the type (
application
), i.e. without the subtype, against the full constant (application/x-protobuf
). It seems to me that this will always return false.I noticed this because Nancy's
Bind<>
method was not deserializing the protobuf request body.The text was updated successfully, but these errors were encountered: