def getChildWithDefault(self, path, request):
     request.setHeader('content-type', self.content_type)
     request = inject_allow_control_headers(request)
     request.__dict__['user'] = User(request.getUser())
     return TwistedResource.getChildWithDefault(self, path, request)
 def render(self, request):
     inject_allow_control_headers(request)
     return ''