pombreda / pygowave-server

Automatically exported from code.google.com/p/pygowave-server
Apache License 2.0
0 stars 0 forks source link

Javascript files may cause django error #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit http://pygowave.net/client/view/participants.js with as-yet
unknown settings.
2. Crashes.

What is the expected output? What do you see instead?
I expect a javascript file. I get a django crash error:

KeyError at /client/view/participants.js

HTTP_ACCEPT_ENCODING

Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in
get_response
  92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/home/pygowave/project/pygowave_client/views.py" in view_module
  88.   if "gzip" in request.META["HTTP_ACCEPT_ENCODING"].split(","):

Exception Type: KeyError at /client/view/participants.js
Exception Value: HTTP_ACCEPT_ENCODING

What browser are you using? Which version?
Firefox 3.5.2, official from Arch Linux. I have a friend with the same
browser and OS who is not getting the error. It works fine in Opera.

If the issue is related to your own PyGoWave Server installation, what
version of the product are you using? On what operating system?

I was using the public version at pygowave.net

Please provide any additional information below.
my browser IS sending the accept_encoding header, but for some reason,
django isn't picking it up. However, the view should be using .get()
anyway, because some browsers may not send it.

Original issue reported on code.google.com by buch...@gmail.com on 8 Sep 2009 at 5:01