Remove file extensions from digests.
Gravatar supports file extensions, so we might come across them.
This commit is contained in:
parent
13a71f0315
commit
ed83a9c4a8
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.2)
|
cmake_minimum_required (VERSION 3.2)
|
||||||
project(libravatarserv
|
project(libravatarserv
|
||||||
VERSION 0.3.1
|
VERSION 0.3.2
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,11 @@ const Request http::parse_request(const string &request)
|
||||||
if (pos_digest != std::string::npos)
|
if (pos_digest != std::string::npos)
|
||||||
{
|
{
|
||||||
digest = digest.substr(0, pos_digest);
|
digest = digest.substr(0, pos_digest);
|
||||||
|
pos_digest = digest.find('.');
|
||||||
|
if (pos_digest != std::string::npos)
|
||||||
|
{
|
||||||
|
digest = digest.substr(0, pos_digest);
|
||||||
|
}
|
||||||
|
|
||||||
string answer;
|
string answer;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user