Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 2025504

Browse files
committed
minor fix to include both head and get methods for query '_q'
1 parent a6d246b commit 2025504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub mod v1 {
121121
S: Search + Clone + Send + Sync,
122122
{
123123
warp::path("_q")
124-
.and(warp::get())
124+
.and(warp::get().or(warp::head()).unify())
125125
.and(warp::query::<crate::QueryOptions>())
126126
.and(warp::any().map(move || index.clone()))
127127
.and(warp::header::optional::<String>("accept"))

0 commit comments

Comments
 (0)