drogonframework / drogonframework/drogon
Options return for path /*
Open
- Dominant language
- C++
- Stars
- 14.3k
- Forks
- 1.4k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 14
Description
curious why this is included and is hardcoded and not configurable? what is the reason for this?
```
if (req->method() == Options && (req->path() == "*" || req->path() == "/*"))
{
auto resp = HttpResponse::newHttpResponse();
resp->setContentTypeCode(ContentType::CT_TEXT_PLAIN);
resp->addHeader("Allow", "GET,HEAD,POST,PUT,DELETE,OPTIONS,PATCH");
resp->setExpiredTime(0);
callback(resp);
return;
}
```
where the code can be found: https://github.com/drogonframework/drogon/blob/59cd4366c75c8f15c011f476f4850b97086f5de5/lib/src/HttpServer.cc#L419
Contributor guide
Assessment
This issue has not been assessed yet.