0001-misc-use-application-javascript-as-content-type-for-.patch
hobo/views.py | ||
---|---|---|
136 | 136 |
for variable in ('jsonpCallback', 'callback'): |
137 | 137 |
if variable in request.GET: |
138 | 138 |
json_str = '%s(%s);' % (request.GET[variable], json_str) |
139 |
response['Content-Type'] = 'application/javascript' |
|
139 | 140 |
break |
140 | 141 |
response.write(json_str) |
141 | 142 |
return response |
142 |
- |