Skip to content

Commit

Permalink
Add fetch in TouchRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
verzth committed Apr 12, 2022
1 parent d976744 commit 1435f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TouchRequest(r *http.Request, w http.ResponseWriter) *Request {
}

switch r.Method {
case http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete, http.MethodPatch:
case http.MethodGet, "FETCH", http.MethodPut, http.MethodPost, http.MethodDelete, http.MethodPatch:
{
contentType := req.header.Get("Content-Type")
if strings.Contains(contentType, "multipart/form-data") {
Expand Down

0 comments on commit 1435f28

Please sign in to comment.