Skip to content
Browse files

Restore format call in negotiable plugin

Without it, tests that involve render method mocks hang for unknown
  • Loading branch information...
lovett committed Aug 7, 2019
1 parent 79c71e1 commit 2a57aff8f8323b0a9966b2e706f3df7886eee514
Showing with 6 additions and 2 deletions.
  1. +6 −2 tools/
@@ -104,10 +104,14 @@ def _finalize(self):
# Requests made on the command line using curl tend to collide
# with the shell prompt. Add some trailing newlines to
# prevent this.
body_format = "{}"

if "curl" in cherrypy.request.headers.get("User-Agent", ""):
final_body += "\n\n"
body_format += "\n\n"

cherrypy.response.body = final_body.encode(self.charset)
cherrypy.response.body = body_format.format(

def render_json(body):

0 comments on commit 2a57aff

Please sign in to comment.
You can’t perform that action at this time.