🧚 A practical web framework for Gleam

No need to pop the value

+2 -3
+2 -3
src/wisp.gleam
··· 745 745 use <- bool.guard(when: request.method != http.Post, return: request) 746 746 { 747 747 use query <- result.try(request.get_query(request)) 748 - use pair <- result.try(list.key_pop(query, "_method")) 749 - use method <- result.map(http.parse_method(pair.0)) 748 + use value <- result.try(list.key_find(query, "_method")) 749 + use method <- result.map(http.parse_method(value)) 750 750 751 751 case method { 752 752 http.Put | http.Patch | http.Delete -> request.set_method(request, method) ··· 1558 1558 } 1559 1559 } 1560 1560 1561 - // TODO: re-export when Gleam has a syntax for this 1562 1561 /// Returns the path of a package's `priv` directory, where extra non-Gleam 1563 1562 /// or Erlang files are typically kept. 1564 1563 ///