pistacheio / pistache

A high-performance REST toolkit written in C++
https://pistacheio.github.io/pistache/
Apache License 2.0
3.12k stars 690 forks source link

Missing round brackets in documentation #1107

Open philippsaul opened 1 year ago

philippsaul commented 1 year ago

Hey there!

Thanks a lot for the documentation. I am currently testing some features and i found a missing bracket. Under "Static file serving":

if (request.resource() == "/doc" && request.method == Http::Method::Get) {
    Http::serveFile(response, "README.md");
}

"request.method" has to be "request.method()"

Maybe it will help others.

kiplingw commented 1 year ago

Thanks @philippsaul. If you'd like to submit a PR, we can get that merged quickly.