def _render_response(self, req, tw_request):
        if req.response:
            if not req.response.body:
                raise PappyException("Response has no body")
            if req.response.headers in 'content-type':
                tw_request.responseHeaders.addRawHeader("Content-Type", req.response.headers['content-type'])
            else:
                guess = mimetypes.guess_type(req.url)
                if guess[0]:
                    tw_request.responseHeaders.addRawHeader("Content-Type", guess[0])
            tw_request.write(req.response.body)
        else:
            tw_request.write(PappyWebServer.render_template('norsp.html'))
        tw_request.finish()
dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/site.py/ViewResponseResource._render_response/swapped operands of `in`