Browse Source

Small code cleanup

Tatsuhiro Tsujikawa 14 năm trước cách đây
mục cha
commit
867cab6df1
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/Request.cc

+ 2 - 2
src/Request.cc

@@ -93,10 +93,10 @@ std::string percentEncode(const std::string& src)
       ++i) {
     // Non-Printable ASCII and non-ASCII chars + some ASCII chars.
     unsigned char c = *i;
-    if(in(c, 0x00u, 0x1fu) || c >= 0x7fu ||
+    if(in(c, 0x00u, 0x20u) || c >= 0x7fu ||
        // Chromium escapes following characters. Firefox4 escapes
        // more.
-       c == ' ' || c == '"' || c == '<' || c == '>') {
+       c == '"' || c == '<' || c == '>') {
       result += fmt("%%%02X", c);
     } else {
       result += c;