Skip to content

Commit

Permalink
Merge pull request #119 from SwissDataScienceCenter/payload-decoding
Browse files Browse the repository at this point in the history
Use content-type from header when decoding payload
  • Loading branch information
eikek authored May 14, 2024
2 parents 2054926 + f5ba49d commit 877f4f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ object MessageHeader:
): DataContentType =
if (headerCt != decoded) {
scribe.warn(
s"ContentType ($headerCt) used for decoding the header is not same as advertised in the header ($decoded)! Choose the one used for decoding the header to continue ($headerCt)."
s"ContentType ($headerCt) used for decoding the header is not same as advertised in the header ($decoded)! Choose the advertised format in the header to continue ($decoded)."
)
}
headerCt
decoded

def fromByteVector(bv: ByteVector): Either[DecodeFailure, MessageHeader] =
readBinaryOrJson(bv)
Expand Down

0 comments on commit 877f4f0

Please sign in to comment.