cubicweb #712309 demote_to_html crashes in ajax context [resolved]

trace

Traceback (most recent call last):
 File "/home/auc/src/fcw/cubicweb/web/views/basecontrollers.py", line 267, in publish
   result = func(*args)
 File "/home/auc/src/fcw/cubicweb/web/views/basecontrollers.py", line 49, in wrapper
   result = func(self, *args, **kwargs)
 File "/home/auc/src/fcw/cubicweb/web/views/basecontrollers.py", line 354, in js_view
   return self._call_view(view)
 File "/home/auc/src/fcw/cubicweb/web/views/basecontrollers.py", line 329, in _call_view
   view.render(**kwargs)
 File "/home/auc/src/fcw/cubicweb/view.py", line 163, in render
   view_func(**context)
 File "/home/auc/src/fcw/cubicweb/view.py", line 202, in call
   self.wview(self.__regid__, rset, row=i, **kwargs)
 File "/home/auc/src/fcw/cubicweb/view.py", line 258, in wview
   self._cw.view(__vid, rset, __fallback_vid, w=self.w, **kwargs)
 File "/home/auc/src/fcw/cubicweb/req.py", line 317, in view
   return view.render(**kwargs)
 File "/home/auc/src/fcw/cubicweb/view.py", line 163, in render
   view_func(**context)
 File "/home/auc/src/fcw/cubes/timeseries/views.py", line 168, in cell_call
   req.demote_to_html()
 File "/home/auc/src/fcw/cubicweb/web/request.py", line 694, in demote_to_html
   self.main_stream.doctype = TRANSITIONAL_DOCTYPE_NOEXT
AttributeError: 'CubicWebTwistedRequestAdapter' object has no attribute 'main_stream'
priorityimportant
typebug
done in3.13.10
load0.500
load left0.000
closed by#1b2a05c9b71c [html, ajax] demote_to_html don't crash anymore if force-html-content-type is activated. Closes #712309