<div>
Hi all,
</div><div><br></div><div>I'm playing with implementing an OPTIONS route. </div><div><br></div><div>The following code:</div><div><br></div><div>options '/' => sub {</div><div> return { something => 1 }</div><div>}</div><div><br></div><div>returns this:</div><div><div><html></div><div> <head></div><div> <title>Bad Request</title></div><div> </head></div><div> <body></div><div> <h1>Bad Request</h1></div><div> <p>Your browser sent a request which this web server could not</div><div> grok.</p></div><div> </body></div><div></html></div><div><br></div><div>- whereas if the Dancer code is switched to 'get' and a GET is used, it works fine. </div><div><br></div><div>This request doesn't even seem to be hitting my Dancer app (just running through myapp.pl right now) - no entries in the log, even on 'core' level.</div><div><br></div><div>Does anyone have any thoughts before I dig further?</div><div><br></div><div>Cheers,</div><div>Rik</div></div>
<div><div><br></div><div>-- </div><div>Rik Brown</div><div>http://www.rikbrown.co.uk</div><div><br></div></div>