mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
tmp show headers
This commit is contained in:
parent
45937e9fbe
commit
3c9e75835c
1 changed files with 3 additions and 0 deletions
3
main.cpp
3
main.cpp
|
@ -139,6 +139,9 @@ int main(int ac, const char* av[]) {
|
||||||
CROW_ROUTE(app, "/block/<string>")
|
CROW_ROUTE(app, "/block/<string>")
|
||||||
([&](const crow::request& req, string block_hash) {
|
([&](const crow::request& req, string block_hash) {
|
||||||
|
|
||||||
|
for (const auto& m : req.headers)
|
||||||
|
cout << m.first << ": " << m.second << endl;
|
||||||
|
|
||||||
// there is some robot scanning everything
|
// there is some robot scanning everything
|
||||||
// on the explorer. I block it with this
|
// on the explorer. I block it with this
|
||||||
if (!xmreg::does_header_has(req, "Accept", "q=.2, */*; q=.2").empty())
|
if (!xmreg::does_header_has(req, "Accept", "q=.2, */*; q=.2").empty())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue