[TASK] FE: Move Content-Length header to middleware