Branch: Tag:

2018-10-26

2018-10-26 10:04:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite [WebDAV]: Test special characters in if-headers.

Fixes [WS-359]/[WS-378].

36:    ::current_test += testsuite->current_test;    ::tests_failed += testsuite->tests_failed;    } +  +  // Some low-level tests. +  RequestID fake_id = RequestID(0, 0, 0); +  +  fake_id->request_headers = ([ +  "if":"<path(>([W/\"etag)\"] <key(> not <no)key>)", +  ]); +  +  test_equal(([ +  "path(": ({ +  ({ +  ({ "etag", "W/\"etag)\"" }), +  ({ "key", "key(" }), +  ({ "not", 0 }), +  ({ "key", "no)key" }), +  }), +  }), +  0: ({ +  ({ +  ({ "key", "key(" }), +  }), +  }), +  ]), fake_id->get_if_data);   }