1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug CSS.php calculates content-lengts wrong

Discussion in 'Resolved Bug Reports' started by lex_, Feb 19, 2014.

  1. lex_

    lex_ New Member

    In connection Apache+Nginx got not loading css and error in logs that css.php send more data then stated in content-length header. So template is broken. Commenting line header('Content-Lenght...) solves problem, so length($css) doesn't calculate correct lenght of the stream. Tha same problem with admin.php
  2. Mike

    Mike XenForo Developer Staff Member

    It sounds like your server is modifying the output, as the code literally takes the length and outputs the string:
            if (is_string($css) && $css && !ob_get_level() && XenForo_Application::get('config')->enableContentLength)
                header('Content-Length: ' . strlen($css));
            echo $css;
    What's the link to your site?
  3. lex_

    lex_ New Member

    I've sent you PM

Share This Page