MCPcopy Index your code
hub / github.com/python/cpython / send_content

Method send_content

Lib/test/test_xmlrpc.py:1186–1190  ·  view source on GitHub ↗
(self, connection, body)

Source from the content-addressed store, hash-verified

1184 return xmlrpclib.Transport.parse_response(self, response)
1185
1186 def send_content(self, connection, body):
1187 if self.fake_gzip:
1188 #add a lone gzip header to induce decode error remotely
1189 connection.putheader("Content-Encoding", "gzip")
1190 return xmlrpclib.Transport.send_content(self, connection, body)
1191
1192 def setUp(self):
1193 BaseServerTestCase.setUp(self)

Callers

nothing calls this directly

Calls 1

putheaderMethod · 0.80

Tested by

no test coverage detected