Commit Graph

65 Commits

Author SHA1 Message Date
tastytea de7e61a2fe
Update copyright years. 2019-02-28 19:49:46 +01:00
tastytea 1a4ebaf024
Fixed the bug introduced by latest bugfix. m(
We included ?/& in the search, but forgot to set the pos +1 char to
the right.
2019-02-28 19:05:27 +01:00
tastytea 3f32e4ff51
Bugfix: "forcedefault" would be treated as "default". 2019-02-28 18:54:50 +01:00
tastytea 00a29894e9
Fixed background color for identicons.
It was 2 characters too short. That resulted in an error.
2019-02-28 18:24:52 +01:00
tastytea 97099f0a8a
retro and identicon is now 5x5.
ivatar changed the size of retro to 5x5, mirroring that.
2019-02-28 17:53:52 +01:00
tastytea fba5c64486
Adjust identicons to match ivatar (10x10, padding, colors, retro = identicon). 2019-02-20 23:12:48 +01:00
tastytea 021e9cfc1d
Initialize variables in Request and Image. 2019-02-20 03:04:23 +01:00
tastytea ee6a113e1a
Re-use Image object for identicons. 2019-02-20 03:03:09 +01:00
tastytea 7e41468176
Set identicons to png 2018-12-27 06:55:16 +01:00
tastytea 68ac890eab
Switched identicon algorithm to sigil. 2018-12-27 00:18:24 +01:00
tastytea a909b0405c
Deleted old identicon code. 2018-12-26 05:55:18 +01:00
tastytea 41299b9529
Transformed some errors into warnings. 2018-12-26 05:47:06 +01:00
tastytea 1dd89882b1
Switched to identiconpp for identicon-generation. 2018-12-26 05:45:31 +01:00
tastytea d2d35d8ac5
If requested size is < 0, return 80px image. 2018-12-09 19:54:38 +01:00
tastytea f7d6bdc3e9
Moved Cache-Control header from program to nginx config. 2018-12-09 19:50:05 +01:00
tastytea 9aa8803029
Return 501 or redirect if "Mystery Person" is not found. 2018-12-06 22:03:59 +01:00
tastytea b00dce398e
Removed header: "Connection: close"
I'm not sure what my motivation was to put it in there. It has no
place in a CGI program.
2018-12-03 22:07:51 +01:00
tastytea 3666be0872
Added "public" to Cache-Control header.
"max-age" already indicates that it can be cached, but it can't hurt
to allow it explicitly.
2018-12-03 21:27:26 +01:00
tastytea 3bdcd7b120
Include only necessary Magick++-headers. 2018-12-01 11:33:32 +01:00
tastytea 785cd7a35f
Refactored settings-stuff into own file. 2018-11-30 07:00:37 +01:00
tastytea 06a1bfccd9
Exit with error code 1 if request is bad 2018-11-30 06:54:56 +01:00
tastytea 1aca78df88
Check if hash is valid 2018-11-30 06:48:45 +01:00
tastytea 513391f44b
Replaced "\n\n" with << endl << endl for consistency 2018-11-29 13:45:46 +01:00
tastytea 268ff7ab6f
If size=0, return standard size(80px) 2018-11-29 13:43:56 +01:00
tastytea ec140aad01
Bugfix: detect file type and send appropriate Content-Type. 2018-11-29 13:40:50 +01:00
tastytea f670c1c8a1
Abort if favicon is requested. 2018-11-28 17:29:08 +01:00
tastytea b0e267f13f
Refactored a tiny little bit. 2018-11-28 16:15:10 +01:00
tastytea 4418251844
Initialize default fallback with "404" 2018-11-28 14:56:15 +01:00
tastytea 3e037d4936
Changed the HTTP Status responses to be more accurate 2018-11-28 10:31:20 +01:00
tastytea 30020024bd
Install README.md 2018-11-27 17:57:55 +01:00
tastytea a8c807717e
Made the documentation more coherent 2018-11-27 17:14:35 +01:00
tastytea fbf7437dd9
Added settings to redirect to libravatar.org if the user was not found
or the fallback is unknown.
2018-11-27 16:56:00 +01:00
tastytea 4d0033652d
Added setting to configure the default fallback. 2018-11-27 15:48:58 +01:00
tastytea cf6b1f84aa
Initialize pseudorandom number with 2^64-1 2018-11-27 12:01:03 +01:00
tastytea 87bedbbf7b
typo 2018-11-27 10:14:44 +01:00
tastytea 645554e226
Added identicon support (closes #2) 2018-11-27 10:05:35 +01:00
tastytea 8cc6e73cb1
Bugfix: Return 404 if fallback is empty or unknown 2018-11-27 05:15:46 +01:00
tastytea 50d902bcc9
Removed debug statement 2018-11-27 05:00:19 +01:00
tastytea 9e6edf7179
Bugfix: Heed d=404 2018-11-27 04:54:20 +01:00
tastytea f793a86af2
Bugfix: Remove file extensions from digest with no parameters in URL 2018-11-27 04:50:03 +01:00
tastytea 43232d802b
Added support for mystery person (aka mystery man) 2018-11-27 04:40:17 +01:00
tastytea ed83a9c4a8
Remove file extensions from digests.
Gravatar supports file extensions, so we might come across them.
2018-11-27 04:22:21 +01:00
tastytea 13a71f0315
Changed environment variable AVATAR_DIR to LIBRAVATARSERV_DIR to avoid collisions.
AVATAR_DIR is still supported until 1.0.0 for backwards-compatibility.
2018-11-27 03:07:12 +01:00
tastytea df50807eeb
Catch non-numeric size and ignore it 2018-11-26 05:29:39 +01:00
tastytea 69579902e2
Made Request.size const 2018-11-26 05:22:49 +01:00
tastytea f611990708
Moved HTTP header Cache-Control and Connection to the top.
This way they are alwas sent, not just on success.
2018-11-26 05:11:27 +01:00
tastytea 4da9a2144e
Changed invalid URL detection to support default image URLs 2018-11-26 05:06:27 +01:00
tastytea 831b3c4ac0
Always send server info 2018-11-26 05:05:53 +01:00
tastytea d9fab6928b
Implemented default URL for missing images (#2) 2018-11-26 05:00:07 +01:00
tastytea 9ff1cc0acf
Added algorithm include, fixed off-by-one error in http::get_parameter() 2018-11-26 04:27:11 +01:00