85 Commits

Author SHA1 Message Date
jomo
3a0a23e5b5 delete hash from redis if file does not exist 2015-01-04 05:01:13 +01:00
jomo
a9a0032b1f actually do send etag on error, but send "none" etag when no (=default) image is sent 2015-01-04 04:36:10 +01:00
jomo
0dfc91f948 don't send etag on error, improves #48 2015-01-04 04:32:59 +01:00
jomo
8ef7bd5937 always show http status 2015-01-04 03:58:40 +01:00
jomo
cbbfb73bea split pathname into array, URL decode, fix #65 2015-01-04 03:37:51 +01:00
jomo
f031616984 fix content-length for index 2015-01-03 18:21:14 +01:00
jomo
4a3b635166 remove newline at end of file 2015-01-03 17:50:44 +01:00
jomo
b40ab60d50 2015. 2015-01-03 02:09:15 +01:00
jomo
25cb3f3c35 fix domain in index 2015-01-03 01:37:42 +01:00
jomo
7ff1ae1b25 remove expressjs from renders 2015-01-02 23:17:33 +01:00
jomo
2f4951311d remove expressjs from skins 2015-01-02 22:58:38 +01:00
jomo
0009535fc0 upper case HTTP status messages 2015-01-02 22:26:39 +01:00
jomo
0a8f2e133e allow .png extension for avatars 2015-01-02 22:04:21 +01:00
jomo
81cd71bf6e fix 422 response in avatars 2015-01-02 22:02:06 +01:00
jomo
958b1ea907 remove expressjs from avatars 2015-01-02 21:55:38 +01:00
jomo
3ac98c88cf remove expressjs from index 2015-01-02 21:28:12 +01:00
jomo
64948368c5 prefix errors with requested uuid 2015-01-02 05:35:45 +01:00
jomo
0ce77ac110 unify quotes again 2014-12-31 19:02:22 +01:00
jomo
e7cec3556a fix etag quotes for avatars 2014-12-31 18:56:12 +01:00
Jake
01e95f7f19 Merge 2014-12-26 00:04:36 -06:00
Jake
a2f40045a9 update code docs 2014-12-20 15:44:38 -06:00
Jake
95de38e8f0 End request if invalid scale 2014-12-17 14:52:21 -06:00
Jake
787dce8ef2 Revert "Lower case UUIDs - renders"
This reverts commit 9d27b7cb41c5585e9db0be87c975fa32455576eb.
2014-12-17 14:52:18 -06:00
Jake
28d2005e3c Lower case UUIDs - renders 2014-12-17 14:52:16 -06:00
jomo
834e737498 if true then false else true 2014-12-17 14:52:12 -06:00
jomo
62e1994121 fix config, use min_scale + max_scale 2014-12-17 14:52:11 -06:00
Jake
d3566df0ca Remove extra module 2014-12-17 14:52:04 -06:00
Jake
b151e03035 Add default image support. Custom images are not rendered - alex or steve are 2014-12-17 14:51:58 -06:00
Jake
9ba3f5190a Create get_render helpers method, move things around 2014-12-17 14:51:56 -06:00
Jake
2873157e97 Add 3d render support 2014-12-17 14:51:17 -06: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
7d47028ff7 fix errors for null skins, closes #20 2014-11-30 03:34:37 +01:00
jomo
a31282e244 OCD 2014-11-30 03:02:09 +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
jomo
60387c8c7c req.secure is always 'http' 2014-11-29 23:20:29 +01:00
Jake
6eef94d6f5 Oops..... 💩 2014-11-29 14:52:29 -06:00
Jake
a40a3819d8 Fix http vs https 2014-11-29 14:17:40 -06: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