#define HTTP_FRAME_HDLEN 9
#define HTTP_FRAME_PADLEN 1
+/* accept any url path,
+ * otherwise only /doh and /dns-query are accepted */
+#define IGNORE_ENDPOINT
+
struct http_stream {
int32_t id;
kr_http_header_array_t *headers;
*/
static int check_uri(const char* path)
{
+#ifdef IGNORE_ENDPOINT
+ return kr_ok();
+#else
static const char *endpoints[] = {"dns-query", "doh"};
ssize_t endpoint_len;
ssize_t ret;
}
return (ret) ? kr_error(ENOENT) : kr_ok();
+#endif /* IGNORE_ENDPOINT */
}
static kr_http_header_array_t *headers_dup(kr_http_header_array_t *src)