kennethreitz/httpbin — pull request #23 by atdt (2011-12-20 05:45:39+00:00)
Title: Add base64-decoding endpoint for specifying arbitrary response strings

This was prompted by a bug in the iter_lines function in requests which causes any trailing text after the final newline to become truncated. I wanted to submit a patch but couldn't think of a way to write a test that followed requests's convention of using httpbin for tests.

This patch adds an endpoint that decodes a URL fragment using the 'base64url' decoding, as described in [RFC 4648, section 5](http://tools.ietf.org/html/rfc4648#section-5) into a UTF-8 string. I also added a test.