Forráskód Böngészése

Drop the empty Accept entry from the example's invalid list

e96a52e made a leading comma legal, so the example printed
"Unexpectedly succeeded!" for ",application/json". Reported in #2570.
yhirose 2 napja
szülő
commit
f2b338ae2e
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      example/accept_header.cc

+ 1 - 2
example/accept_header.cc

@@ -55,8 +55,7 @@ int main() {
       "text/html;q=1.5,application/json",     // q > 1.0
       "text/html;q=-0.1,application/json",    // q < 0.0
       "text/html;q=invalid,application/json", // invalid q value
-      "invalidtype,application/json",         // invalid media type
-      ",application/json"                     // empty entry
+      "invalidtype,application/json"          // invalid media type
   };
 
   for (const auto &invalid_accept : invalid_examples) {