Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled 'accept' content-type #28

Closed
jpmens opened this issue Feb 24, 2013 · 0 comments
Closed

Unhandled 'accept' content-type #28

jpmens opened this issue Feb 24, 2013 · 0 comments
Assignees
Labels

Comments

@jpmens
Copy link
Contributor

jpmens commented Feb 24, 2013

I was hoping (without looking at the code) that the server would allow me to specify a non-standard content-type:

curl -H 'Accept: application/zone' http://dnslg.prox:8080/example.org/A
A server error occurred.  Please contact the administrator.

But it doesn't:

Traceback (most recent call last):
  File "/usr/lib64/python2.6/wsgiref/handlers.py", line 93, in run
    self.result = application(self.environ, self.start_response)
  File "/home/jpm/dns-lg/DNSLG/__init__.py", line 397, in application
    do_dnssec, tcp, cd, edns_size, reverse)
  File "/home/jpm/dns-lg/DNSLG/__init__.py", line 283, in query
    formatter.format(answer, qtype, qclass, answer.flags, self)
UnboundLocalError: local variable 'formatter' referenced before assignment
172.16.153.1 - - [24/Feb/2013 17:59:03] "GET /example.org/A HTTP/1.1" 500 59

;-)

Info: latest version, launched with

python test-server.py
@ghost ghost assigned bortzmeyer Feb 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants