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

Already on GitHub? Sign in to your account

Added support for getting request body as a byte array #35

merged 1 commit into from Oct 2, 2011


None yet
2 participants

petergillardmoss commented Sep 7, 2011

This is useful for binary data as it isn't reliable (or easy!) to turn the encoded string back to a byte array.

Hope this patch makes sense.

This was to solve the problem of handling gzipped bodies. I considered checking "Content-Encoding" in the request header and doing this transparently which might be an idea as well.

However other binary data would probably need access to the byte array so I left it.

@aslakhellesoy aslakhellesoy merged commit 1dbe3b9 into webbit:master Oct 2, 2011

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