You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/04/14 15:56:27 UTC

svn commit: r1092247 - /couchdb/trunk/src/couchdb/couch_httpd.erl

Author: fdmanana
Date: Thu Apr 14 13:56:27 2011
New Revision: 1092247

URL: http://svn.apache.org/viewvc?rev=1092247&view=rev
Log:
Include OTP minor release information in the Server header

This is mostly to help diagnose issues that might be related
to specific OTP releases.

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=1092247&r1=1092246&r2=1092247&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Thu Apr 14 13:56:27 2011
@@ -844,9 +844,8 @@ negotiate_content_type(#httpd{mochi_req=
     end.
 
 server_header() ->
-    OTPVersion = "R" ++ integer_to_list(erlang:system_info(compat_rel)) ++ "B",
     [{"Server", "CouchDB/" ++ couch_server:get_version() ++
-                " (Erlang OTP/" ++ OTPVersion ++ ")"}].
+                " (Erlang OTP/" ++ erlang:system_info(otp_release) ++ ")"}].
 
 
 -record(mp, {boundary, buffer, data_fun, callback}).