48
51
class SmartRequestHandler(http_server.TestingHTTPRequestHandler):
52
58
"""Hand the request off to a smart server instance."""
54
70
self.send_header("Content-type", "application/octet-stream")
56
75
# if this fails, we should return 400 bad request, but failure is
57
76
# failure for now - RBC 20060919
58
77
data_length = int(self.headers['Content-Length'])