I think it's a CherryPy web server bug. It's interesting that their users are not noticing this problem, judging by the fact that the bug has been there for a long while.
> does it have something to do with the cherrypy dev server? > Though I don't have such problems under Mac or Ubuntu server. > 2008/12/23 hhsuper <[email protected]> > my project has the problem, where i develop in windows,has some > solution? web.py .031 doesn't fix the bug > On Sun, Dec 21, 2008 at 6:52 AM, FHSM <[email protected]> wrote: > I know this is an old issue (http://groups.google.com/group/webpy/ > browse_thread/thread/649505363b4b8918) but I'm curious if any progress > has been made on it. ?For those who don't remember / know .css files > made on windows (ie those with CR LF as line breaks) are served > incorrectly. ?As a result it takes 10 seconds or so to load any page > that calls to a windows .css file via the dev server. > I was hoping 0.3 or 0.31 would fix the problem. ?Neither did the trick > for me. ?When 0.31 didn't fix it I tried upgrading the wsgiserver from > the bundled 3.1.0 to 3.1.1 from the latest release of CherryPy, still > no dice. > Am I the only one still having this problem? > The problem has a lot of work arounds: > Don't use windows to make your .css file / other flavors of don't have > CR LF breaks in your files, compress the css etc. > Serve the css from somewhere else, like the filesystem (C:\whatever > \style.css in your template). > Use this monkey patch from last year: > from SimpleHTTPServer import SimpleHTTPRequestHandler > send_head = SimpleHTTPRequestHandler.send_head > def new_send_head(*a, **kw): > ? ?print 'new_send_head', a, kw > ? ?f = send_head(*a, **kw) > ? ?return f and open(f.name, 'rb') > SimpleHTTPRequestHandler.send_head = new_send_head > All work, none are that hard, but it would still be nice if it worked. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
