61 Commits

Author SHA1 Message Date
jomo
fc5ab113db Merge branch 'master' of github.com:crafatar/crafatar 2015-07-17 01:37:35 +02:00
jomo
d0689c9e3b change two more logs to debug 2015-07-17 01:37:26 +02:00
Jake
c2e2a98b82 Make 'too busy' an error in logs 2015-07-16 17:52:16 -05:00
Jake
b1cdf61e4b Change invalid request path to be a 404 rather than 422, implement status id in response module 2015-07-16 17:48:48 -05:00
Jake
d71d99fa9a Make a vast majority of logs debug, make it so that essential info is in one line 2015-07-16 17:42:41 -05:00
Jake
f4e31eab4f Prevent twitter logo from overlapping Crafaatar title on mobile 2015-07-16 17:15:03 -05:00
Jake
4ed0b75c9d More meta tags 2015-07-16 17:09:54 -05:00
jomo
3e4f150262 add missing import N°2 2015-06-25 21:24:26 +02:00
jomo
fa8e719de3 add missing import 2015-06-25 21:22:54 +02:00
jomo
34f94bf9b5 get rid of redundant config names #124 2015-06-25 21:19:50 +02:00
Jake
e9071b123c Handle several unhandled errors - this is becoming a mess and we should really use a package to clean this up - closes #113 2015-06-25 13:26:27 -05:00
Jake
a2e0edc491 Namespace and move config to root directory, closes #124 2015-06-25 13:12:08 -05:00
Jake
2eb1112c3b Fix render defaults 2015-06-24 15:14:28 -05:00
Jake
d2ab7b87ad Fix tests with new default code 2015-06-24 15:08:05 -05:00
Jake
8c39d0c017 Add support for userIds as defaults, ccloses #115 2015-06-24 01:23:22 -05:00
Jake
f1fd92f1cf Disallow additional paths, closes #123 2015-06-24 00:50:38 -05:00
Jake
58a2f0662d capaaacittty 2015-06-22 23:34:35 -05:00
jomo
f36cfa7898 skip helm for images without alpha channel
hotfix for #117
2015-05-28 01:55:05 +02:00
jomo
c54e3020e9 shut up travis 2015-05-28 01:35:39 +02:00
jomo
288657107e actually store the skin in store_skin, fixes #108; pipe skins & capes through lwip before saving, fixes #121 2015-05-28 01:32:29 +02:00
jomo
01049cb34d rewrite request queue, fixes #118 2015-05-28 00:45:20 +02:00
jomo
add4d1abac allow some latency 2015-05-24 17:22:47 +02:00
jomo
9a8dcbdff1 Revert "add missing @ for twitter username"
This reverts commit 48ce2f9267e43bfcd00c79ab601c28348f01d3b3.

Actually looks better without the @. It has a leading Larry anyways
2015-05-24 15:53:11 +02:00
jomo
e1f1fe7c57 add toobusy 503 response 2015-05-24 13:34:49 +02:00
jomo
6f94af7a4a log response time 2015-05-07 01:06:56 +02:00
jomo
6273e3bcc8 adjust 422 messages 2015-05-06 22:13:28 +02:00
jomo
46d10fdc81 remove unnecessary double check 2015-05-06 21:07:43 +02:00
jomo
ed25d30ff0 remove unnecessary log 2015-05-06 21:07:19 +02:00
jomo
4286b35775 support redirection for capes 2015-04-25 22:59:33 +02:00
jomo
efd9c0ccee don't remove trailing slash for root path 2015-04-25 15:55:59 +02:00
jomo
79ab296f1f get rid of path.resolve
This doesn't handle '..' and other things that
path.resolve does, but if you're passing weird
things to a URL, your fault.
2015-04-25 15:49:47 +02:00
jomo
34adbd32d7 be more clear in docs 2015-04-22 00:35:39 +02:00
jomo
c8dad9dfbb invalidate cache when skin file is gone 2015-04-22 00:31:37 +02:00
jomo
3cdcccde57 improve logging 2015-04-22 00:26:10 +02:00
jomo
7ca43e3cd9 add description for X-Storage-Type, remove debug log 2015-04-22 00:23:48 +02:00
jomo
cf1119e2cb update preload images on index 2015-04-22 00:14:18 +02:00
jomo
69f0ee23be use new response module for assets
unfortunately we can't use stream pipes because we need to generate
a hash of the content for the Etag.

I think proper caching (i.e. Etag) is very important
2015-04-22 00:06:10 +02:00
jomo
2e66e5c794 add missing status for empty capes 2015-04-21 23:46:07 +02:00
jomo
244f90c4c7 fix bug with skin caching that cached capes as non-existent
when using cache.save_hash, an `undefined` skin or cape hash means "do not touch"
while `null` means "overwrite as non-existent"

this was sent to redis after calling /capes/Notch for the first time:

  "hmset" "notch" "c" "3f688e0e699b3d9fe448b5bb50a3a288f9c589762b3dae8308842122dcb81" "t" "1429651244222"
  "hmset" "notch" "s" "a116e69a845e227f7ca1fdde8c357c8c821ebd4ba619382ea4a1f87d4ae94" "c" "" "t" "1429651244235"

as you can see, the first request stores the c(ape) but does not touch the s(kin), whereas the second request
sets the s(kin) and replaces the c(ape) value
2015-04-21 23:34:14 +02:00
jomo
13169be774 use new response module for capes + more
- made sure that get_cape returns a status
- response.js returns 404 if body is empty
- 'X-Storage-Type: undefined' is no longer returned when status is `null`
2015-04-21 23:27:10 +02:00
jomo
8971e3c02b use new response module for renders + bug fixes 2015-04-21 00:57:14 +02:00
jomo
a947b02c87 use new response module for skins 2015-04-20 23:18:27 +02:00
jomo
0b0882e63d use new response module for index 2015-04-20 22:19:57 +02:00
jomo
8dc55442b1 remove debug log 2015-04-20 01:12:16 +02:00
jomo
d025a3004d remove always-empty first entry in req.url.path_list
rhyme pro 😎
2015-04-20 01:10:39 +02:00
jomo
0b687d8f8e correct comment about result.type 2015-04-20 00:52:08 +02:00
jomo
3cbf73b0d7 create new response module & use it for avatars 2015-04-20 00:41:11 +02:00
jomo
fce58722c8 start work on #45 2015-04-12 19:53:34 +02:00
jomo
9d2fe0c454 some logging fixes 2015-04-06 03:32:13 +02:00
jomo
f6c4e62846 fix path in error message 2015-04-06 03:27:28 +02:00