Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HTML bodies #30

Open
wants to merge 1 commit into
base: primary
Choose a base branch
from

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