forked from tastytea/libravatarserv
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)
|
||||
project(libravatarserv
|
||||
VERSION 0.3.1
|
||||
VERSION 0.3.2
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -42,6 +42,11 @@ const Request http::parse_request(const string &request)
|
|||
if (pos_digest != std::string::npos)
|
||||
{
|
||||
digest = digest.substr(0, pos_digest);
|
||||
pos_digest = digest.find('.');
|
||||
if (pos_digest != std::string::npos)
|
||||
{
|
||||
digest = digest.substr(0, pos_digest);
|
||||
}
|
||||
|
||||
string answer;
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user