couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [18/50] couch commit: updated refs/heads/COUCHDB-2734-header-date to f3e022c
Date Mon, 29 Jun 2015 21:46:24 GMT
Small optimization


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/44bb98f9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/44bb98f9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/44bb98f9

Branch: refs/heads/COUCHDB-2734-header-date
Commit: 44bb98f9ddff39936a6533a51eb09d789b58708a
Parents: eef1250
Author: Dmitry Demeshchuk <dem@mochimedia.com>
Authored: Wed Nov 13 11:21:01 2013 -0800
Committer: Dmitry Demeshchuk <dem@mochimedia.com>
Committed: Wed Nov 13 11:21:01 2013 -0800

----------------------------------------------------------------------
 src/mochiweb_util.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/44bb98f9/src/mochiweb_util.erl
----------------------------------------------------------------------
diff --git a/src/mochiweb_util.erl b/src/mochiweb_util.erl
index 2690f58..c606767 100644
--- a/src/mochiweb_util.erl
+++ b/src/mochiweb_util.erl
@@ -360,8 +360,8 @@ guess_mime(File) ->
     case filename:basename(File) of
         "crossdomain.xml" ->
             "text/x-cross-domain-policy";
-        _ ->
-            case mochiweb_mime:from_extension(filename:extension(File)) of
+        Name ->
+            case mochiweb_mime:from_extension(filename:extension(Name)) of
                 undefined ->
                     "text/plain";
                 Mime ->


Mime
View raw message