couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1061427 - /couchdb/trunk/src/couchdb/couch_httpd.erl
Date Thu, 20 Jan 2011 18:02:28 GMT
Author: fdmanana
Date: Thu Jan 20 18:02:28 2011
New Revision: 1061427

URL: http://svn.apache.org/viewvc?rev=1061427&view=rev
Log:
Simpler implementation and one less BIF call

Modified:
    couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=1061427&r1=1061426&r2=1061427&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Thu Jan 20 18:02:28 2011
@@ -676,13 +676,11 @@ start_jsonp(Req) ->
     end.
 
 end_jsonp() ->
-    Resp = case get(jsonp) of
+    case erlang:erase(jsonp) of
         no_jsonp -> [];
         [] -> [];
         _ -> ");"
-    end,
-    put(jsonp, undefined),
-    Resp.
+    end.
 
 validate_callback(CallBack) when is_binary(CallBack) ->
     validate_callback(binary_to_list(CallBack));



Mime
View raw message