~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:02:32 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317210232-0cw98mbpn9356que
No need to uppercase the reason.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
    def send_response(self, code, headers={}, reason=None):
42
42
        if reason is None:
43
 
            reason = httplib.responses[code].upper()
 
43
            reason = httplib.responses[code]
44
44
        response_code = '%s %s' % (code, reason)
45
45
        response_headers = {'content-type': 'application/json'}
46
46
        response_headers.update(headers.items())