Skip to content

Commit

Permalink
Merge pull request #332 from VishnuJin/fix-head-method-not-allowed-fo…
Browse files Browse the repository at this point in the history
…r-query

Fix: head method not allowed for query `_q` path
  • Loading branch information
thomastaylor312 authored Apr 14, 2022
2 parents a6d246b + 2025504 commit 9487388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub mod v1 {
S: Search + Clone + Send + Sync,
{
warp::path("_q")
.and(warp::get())
.and(warp::get().or(warp::head()).unify())
.and(warp::query::<crate::QueryOptions>())
.and(warp::any().map(move || index.clone()))
.and(warp::header::optional::<String>("accept"))
Expand Down

0 comments on commit 9487388

Please sign in to comment.