from pyramid.response import Response response = Response() response.content_type = 'application/octet-stream' # or some other mime type response.body = b'foo' return response
On Wed, Mar 23, 2016 at 6:18 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote: > I have a small parcel of information that needs to be sent as binary data. > (it's an openssl cert in der format). i can't figure out the right way to > set up the response. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com. > To post to this group, send email to pylons-discuss@googlegroups.com. > Visit this group at https://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at https://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.