jomo
ebe88cdc48
Revert #62 to avoid conflicts with #77
...
This reverts commit 6e03f0f55dd351b35bd58106f529a5e8e2bf6d39.
2015-01-31 17:57:21 +01:00
Jake
6e03f0f55d
Replace id with uuid, closes #62
2015-01-29 20:39:18 -06:00
Jake
ffcd023c05
Code cleanup
2015-01-29 19:09:02 -06:00
Jake
3def0910bc
Network rewrite/major cleanup, major caching changes, etc
...
Work on implementing capes
Update to no-express
Add more render tests
Add capes express route
Add documentation
Add undefined images to .gitignore
Fix no-express server again
Cleanup config a bit
General cleanup
Add CodeClimate badge
Test on Heroku
Speed optimizations
Fix tests
Code cleanup
2015-01-26 22:09:42 -06:00
jomo
e437b90b51
prepend uuid to all logs
2015-01-11 02:13:21 +01:00
jomo
c90c030904
prepend uuid to "status: " logs
2015-01-10 23:34:27 +01:00
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
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
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