fastcgi: Add support for OPTIONS requests

This commit is contained in:
Matthew Holt
2015-05-06 11:14:02 -06:00
parent 898896f9e0
commit 7c844909b9
2 changed files with 12 additions and 1 deletions

View File

@ -70,6 +70,8 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
resp, err = fcgi.Head(env)
case "GET":
resp, err = fcgi.Get(env)
case "OPTIONS":
resp, err = fcgi.Options(env)
case "POST":
resp, err = fcgi.Post(env, r.Header.Get("Content-Type"), r.Body, contentLength)
case "PUT":