Skip to content
Permalink
Browse files

Return the correct Content-Type in the JSONRPC Dispatcher. Fixes Issue

  • Loading branch information...
prologic committed Apr 25, 2014
1 parent 186c304 commit 15cadfbce3de0c0ab67abc9806a1af2c23527b72
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.rst
  2. +1 −1 circuits/web/dispatchers/jsonrpc.py
@@ -6,6 +6,7 @@ Change Log
==========


- :bug:`100` Fixed returned Content-Type in JSON-RPC Dispatcher.
- :feature:`99 major` Added Digest Auth support to the ``circuits.web`` CLI Tool
- :feature:`98 major` Dockerized circuits. See: https://docker.io/
- :bug:`97 major` Fixed ``tests.net.test_tcp.test_lookup_failure`` test for Windows
@@ -39,7 +39,7 @@ def _on_request(self, event, req, res):
if self.path is not None and self.path != req.path.rstrip("/"):
return

res.headers["Content-Type"] = "application/javascript"
res.headers["Content-Type"] = "application/json"

try:
data = req.body.read().decode(self.encoding)

0 comments on commit 15cadfb

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.