jomo
1f0f696151
Make sure 'slim' model is correctly checked
...
The 'textures.SKIN.metadata.model' field seems to be only present if set to 'slim', so currently this change has no effect
however, if the field is returned in other cases (in future), we need to make sure it acually reports 'slim'
2016-01-11 07:37:28 +01:00
jomo
1144b6755a
always use crc32 for etag, much more reliable than mojang skin hash
...
had to make quite a few changes to tests to prevent them from failing
also, etag is now only sent with a 200 response, as defined in RFC7232
2015-12-16 00:47:51 +01:00
jomo
7d02138c1e
solve merge conflicts
2015-12-14 01:51:49 +01:00
jomo
3c21a59c94
add support for slim renders, fixes #125 , adjust tests
2015-12-13 14:08:59 +01:00
jomo
fb0c70d648
return HTTPERROR on 429 or 5xx, fixes #151
...
otherwise 429 or 5xx would be overwriting cached value with null for $config minutes
2015-10-21 01:02:57 +02:00
jomo
fd4fb0764c
return & use lwip-stripped image in skins.save_image
...
no need to pass along (possibly) bulky or broken images!
see #147
2015-09-29 23:32:16 +02:00
jomo
1ecf3c0122
add 504 to expected return codes, don't cache unexpected responses
2015-09-21 22:21:14 +02:00
jomo
cc2840ae4b
log error if http code not available
2015-09-20 22:02:37 +02:00
jomo
a15cb20144
TooManyRequestsException shouldn't actually throw an error
...
all other errors thrown here are network issues, this is not.
2015-09-20 21:43:12 +02:00
jomo
9cdca6acda
don't throw strings
2015-09-20 21:28:43 +02:00
jomo
26f6b089ef
log errors only once, fixes #140
...
also made sure some (network) errors have level 'WARN'
these are printed without stacktrace
2015-09-20 21:17:13 +02:00
jomo
b97087c099
catch HTTP 500/503 and empty response, fixes #141
2015-09-20 20:58:34 +02:00
jomo
3a61e15abf
various networking.js improvements
...
- cleaned up some messy if/else code, replaced with nicely readable switch/case
- catch JSON.parse errors
2015-08-31 00:10:35 +02:00
jomo
442dee0280
don't print all this shit when we receive a 500
2015-07-27 20:06:16 +02: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
a2e0edc491
Namespace and move config to root directory, closes #124
2015-06-25 13:12:08 -05: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
af03fb63f8
❤️ eslint
2015-03-27 23:12:44 +01:00
jomo
13360430d9
join logs using , instead of + " " +
2015-03-15 01:57:19 +01:00
jomo
abaf3f77aa
add & clean up documentation
...
also a small improvement for URL error logging, variable naming, and argument joining
2015-03-01 18:58:21 +01:00
jomo
f984b20344
mv modules/ lib/
...
that's what all the cool kids do
2015-02-27 18:49:39 +01:00