[Groonga-commit] droonga/droonga-http-server at 9af722e [master] Use meaningful regexp for all match case

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 22 13:10:31 JST 2014


Kouhei Sutou	2014-04-22 13:10:31 +0900 (Tue, 22 Apr 2014)

  New Revision: 9af722ebd7058f33afe3b1189d263d2937984643
  https://github.com/droonga/droonga-http-server/commit/9af722ebd7058f33afe3b1189d263d2937984643

  Message:
    Use meaningful regexp for all match case
    
    All request path starts with "/".

  Modified files:
    bin/droonga-http-server

  Modified: bin/droonga-http-server (+1 -1)
===================================================================
--- bin/droonga-http-server    2014-04-21 19:51:27 +0900 (842d2e4)
+++ bin/droonga-http-server    2014-04-22 13:10:31 +0900 (87ce864)
@@ -52,7 +52,7 @@ application.use(session({
 application.use(responseTime());
 if (options.cacheSize > 0) {
   var cacheMiddlewareRules = [
-    { regex: /./ }
+    { regex: /^\// }
   ];
   if (droonga.Cache) {
     var cache = new droonga.Cache({
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index