46 Commits

Author SHA1 Message Date
jomo
958b1ea907 remove expressjs from avatars 2015-01-02 21:55:38 +01:00
jomo
64948368c5 prefix errors with requested uuid 2015-01-02 05:35:45 +01:00
jomo
e7cec3556a fix etag quotes for avatars 2014-12-31 18:56:12 +01:00
jomo
9faeedc03f convert keys to lower case at cache level 2014-12-10 19:53:44 +01:00
jomo
c8d28ed2df Revert "Lower case UUIDs - skins/avatars"
I already commited this ;)

This reverts commit e4bdecfbb756f38a85310a205a5693b7c5055f1b.
2014-12-08 22:39:38 +01:00
jomo
81bc380b0f Merge branch 'master' of github.com:Jake0oo0/crafatar 2014-12-08 22:38:16 +01:00
Jake
e4bdecfbb7 Lower case UUIDs - skins/avatars 2014-12-08 15:36:00 -06:00
jomo
e726fb9d5f convert uuid params to lower case, store only lower case uuids 2014-12-08 21:57:37 +01:00
jomo
bbeb734d91 parseInt size 2014-11-30 06:30:38 +01:00
jomo
91854ad86e log -> debug etag 2014-11-30 03:01:06 +01:00
jomo
332330f68e replacing all single quotes with double quotes
Until now it was a big mess with some strings using single quotes and some others double quotes
We were using way more double quotes, so I chose to use them globally
2014-11-30 00:07:05 +01:00
Jake
a4c11f396f Rewrite skin support 2014-11-29 12:21:35 -06:00
jomo
452bb14605 debug log for cloudflare/etag 2014-11-27 13:37:14 +01:00
jomo
6945cda8d6 remove redundant etag modifications
helm and size are URL parameters. An Etag is an identifier for a single URL, not multiple
2014-11-27 13:36:22 +01:00
jomo
7d09da8384 add Access-Control-Allow-Origin, fix #19 2014-11-25 00:37:14 +01:00
jomo
95ebaf86c5 use Etag, fix #18 2014-11-25 00:35:25 +01:00
jomo
0734060d96 oops 💩 2014-11-24 02:31:21 +01:00
jomo
1dd1ee4d34 allow custom default image, fix #17 2014-11-24 02:12:56 +01:00
jomo
55ed86a3f6 skin support, fix #15 2014-11-24 00:53:39 +01:00
jomo
e6481e3c73 bug fixes, improvements, fix #13, fix #14 2014-11-23 21:53:42 +01:00
jomo
3216833887 allow dashed uuid 2014-11-22 21:28:54 +01:00
Jake
8d73f50dd4 Fix README merge 2014-11-20 20:02:36 -06:00
Jake
f95ce50abc Username support 2014-11-20 20:01:39 -06:00
jomo
03306dff08 better X-Storage-Type
none: Cached: User has no skin.
cached: Skin cached
checked: cached & checked for updates. No (new) skin
downloaded: checked, Skin changed or unknown, downloaded.
error: (error)
2014-11-10 23:55:56 +01:00
jomo
e592048ec1 always show image, get steve/alex by UUID, send correct HTTP status codes 2014-11-05 01:40:03 +01:00
jomo
6eac9b907d clarify config options 2014-11-05 00:12:08 +01:00
Jake
6b6f7c7f46 Allow .png file extension 2014-11-02 10:32:37 -06:00
jomo
b59d6ced07 cache non-existing UUIDs 2014-11-02 10:32:35 -06:00
jomo
b513883d93 use outdated hash on network errors, fixes #5 🍺 2014-11-02 05:15:38 +01:00
jomo
da8ba52717 add redis caching, closes #3. More logs, closes #9 2014-11-02 04:12:00 +01:00
jomo
2d061246c4 fix X-Storage-Type always returning local 2014-11-01 22:17:55 +01:00
jomo
999f2fda37 fix empty 404 image 2014-11-01 21:10:37 +01:00
jomo
1606fac89b add support for helmets (?helm), closes #2. changed '/:uuid/123' to '/:uuid?size=123', closes #10. Bugfixes 2014-11-01 21:03:42 +01:00
jomo
d84d55f533 better error handling 2014-10-30 00:21:16 +01:00
jomo
cc159d3620 split code into more modules, fixes #8 2014-10-29 19:53:27 +01:00
jomo
e2348bbb9d use 'request' for http actions; remove skins/tmp (was only for debugging); use buffer for skin -> avatar 2014-10-23 23:56:52 +02:00
Jake
3762a3f8bc Add Storage-Type and Response-Time header, indicating how the skin was retrieved and time it took to process the request respectively 2014-10-19 20:43:27 -05:00
jomo
507e0e9220 add ?default=alex|steve; more error handling 2014-10-20 01:22:59 +02:00
jomo
77bcf9dbe7 prevent large images 2014-10-19 23:36:58 +02:00
jomo
adea3320bc merge 2014-10-19 23:32:13 +02:00
jomo
81c51cdbbe do not extract face on every request, store face only 2014-10-19 23:28:21 +02:00
Jake
f3ca19f631 Add temp restriction: 2014-10-19 16:01:50 -05:00
jomo
6baf03aa80 typo 2014-10-19 21:05:55 +02:00
jomo
dd9574c19b don't process invalid requests 2014-10-19 21:04:47 +02:00
Jake
ec393a47ed Use lwip, add size 2014-10-19 11:13:29 -05:00
Jake
f088c17a8b init commit 2014-10-18 13:57:06 -05:00