Fixes a bug causing HTTP 405 for all requests

Fixes a bug of improper handling of CORS OPTIONS requests resulting in
HTTP 405.
Merge pull request #1 from sssilver/master

Fixes a bug causing HTTP 405 for all requests