Skip to content

Conversation

@jmacdone
Copy link

@jmacdone jmacdone commented Jul 3, 2024

An bare bones alternative if PR #29 is too much at once

@jmacdone jmacdone mentioned this pull request Jul 3, 2024
@JoshData JoshData changed the title Minimal changes to support HTML bodies Support HTML bodies Jul 3, 2024
Comment on lines -405 to +414
return value.decode("utf16")
decoded = value.decode("utf16")
# do c-style strings get encoded as utf16?
# is there an off-by-one error in the variable length math?
decoded = decoded.removesuffix('\x00')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be curious to know more about what might be going on here.

Earlier we have a value_length field that is ignored because we use the whole embedded stream. Maybe it can't be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants