Permalink
Browse files

Content-Type: text/plain

  • Loading branch information...
1 parent f2c94a4 commit 2a6c4b94593c96cf691d9ddc79d95f0c6e43c4a4 @jpf committed Dec 30, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 jsondns.rb
View
@@ -63,6 +63,7 @@ def status_for(answer)
get '/IN/:domain/:type' do
answer = resolver.jsonquery(params[:domain],params[:type])
status status_for(answer)
+ response.headers['Content-Type'] = 'text/plain'
response.headers['Cache-Control'] = 'public, max-age=' + ttl_for(answer).to_s
if params[:callback] =~ /^[a-zA-Z_$][a-zA-Z0-9_$]*$/
params[:callback] + '(' + answer + ')' # JSONP

0 comments on commit 2a6c4b9

Please sign in to comment.