]> granicus.if.org Git - apache/commitdiff
Shortcut where the resource has no language [discovered with no
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 27 Jan 2002 07:47:30 +0000 (07:47 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 27 Jan 2002 07:47:30 +0000 (07:47 +0000)
  DefaultLanguage in cgi-bin, resolving Greg Ames' observations, we
  had a lurking segfault.]

  This begs the question, what exactly did the fn do with no language
  in terms of serving content back in 1.3.  Should be reviewed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93046 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index f41d2d4648f87f519e578eabf88646cf173d2a5e..a88cf583884591bca808a6a790c1a3d94f2e9087 100644 (file)
@@ -1473,7 +1473,7 @@ static void set_language_quality(negotiation_state *neg, var_rec *variant)
         if (!neg->accept_langs) {
             return;             /* no accept-language header */
         }
-
+        return;
     }
     else {
         /* Variant has one (or more) languages.  Look for the best