mirror of
https://github.com/labstack/echo.git
synced 2025-01-12 01:22:21 +02:00
Merge pull request #243 from swenson/master
OPTIONS should route to the options handler
This commit is contained in:
commit
980edb686a
@ -224,7 +224,7 @@ func (n *node) addHandler(method string, h HandlerFunc) {
|
|||||||
case PATCH:
|
case PATCH:
|
||||||
n.methodHandler.patch = h
|
n.methodHandler.patch = h
|
||||||
case OPTIONS:
|
case OPTIONS:
|
||||||
n.methodHandler.delete = h
|
n.methodHandler.options = h
|
||||||
case HEAD:
|
case HEAD:
|
||||||
n.methodHandler.head = h
|
n.methodHandler.head = h
|
||||||
case CONNECT:
|
case CONNECT:
|
||||||
@ -247,7 +247,7 @@ func (n *node) findHandler(method string) HandlerFunc {
|
|||||||
case PATCH:
|
case PATCH:
|
||||||
return n.methodHandler.patch
|
return n.methodHandler.patch
|
||||||
case OPTIONS:
|
case OPTIONS:
|
||||||
return n.methodHandler.delete
|
return n.methodHandler.options
|
||||||
case HEAD:
|
case HEAD:
|
||||||
return n.methodHandler.head
|
return n.methodHandler.head
|
||||||
case CONNECT:
|
case CONNECT:
|
||||||
|
Loading…
Reference in New Issue
Block a user