43 Commits

Author SHA1 Message Date
jomo
79ab1d0e2a correct comments 2015-02-18 19:18:05 +01:00
jomo
281cd523e6 remove unused options for GET requests 2015-02-18 19:14:59 +01:00
Jake
103519637f Rename hash vars to something that makes more sense in the specific context 2015-02-02 17:47:22 -06:00
Jake
e73e677d8d Resolve mismatched URL #s, closes #85, gg @jomo 2015-02-02 17:29:07 -06:00
jomo
045ffbd63f log URL for too many requests 2015-02-01 21:31:37 +01:00
Jake
9296fac091 uuid -> userId closes #62 2015-01-31 16:48:36 -06:00
jomo
7a1ffc904b use array instead of object, use dashed names 2015-01-31 20:45:31 +01:00
jomo
ff5e9a601b catch 204 responses from mojang
I have no idea what causes 404 and what causes 204, but then it's mojang 💩
2015-01-31 20:36:59 +01:00
jomo
baa87bc23b remove unused argument 2015-01-31 18:03:33 +01:00
jomo
e6152d5898 prepend request IDs instead of UUIDs, fixes #77
also cleaned up a few other things I noticed when looking over the files
2015-01-31 17:10:49 +01:00
Jake
30f1052f90 Correct request version 2015-01-27 15:39:23 -06:00
Jake
9fa9342bdc heyo! 2015-01-27 15:36:07 -06:00
Jake
5a258bb651 Remove debug/formatting 2015-01-26 22:33:26 -06:00
Jake
c428499959 Finish merging 2015-01-26 22:31:35 -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
Navarr Barnier
dd7e46f377 Implement Skeleton for Returning Capes (Currently returns skins)
Align capes.js codestyle to the rest of the project

get_cape_hash helper (not working - wip)

clean up capes.js
2015-01-26 22:03:06 -06:00
jomo
e437b90b51 prepend uuid to all logs 2015-01-11 02:13:21 +01:00
jomo
0ce77ac110 unify quotes again 2014-12-31 19:02:22 +01:00
jomo
a162387f83 clean code 2014-12-17 14:52:13 -06:00
Jake
1c33119e05 Cache caching for skins and renders' 2014-12-17 14:52:01 -06:00
jomo
96ae65ee6a set User-Agent to 'https://crafatar.com' 2014-11-30 06:49:49 +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
e01cff53b2 re-add checking for existing file before downloading 2014-11-29 23:15:43 +01:00
jomo
db223f1dc6 fix tests 2014-11-29 21:24:59 +01:00
Jake
a4c11f396f Rewrite skin support 2014-11-29 12:21:35 -06:00
Jake
caf7c731da Move extraction logic 2014-11-29 10:55:51 -06:00
jomo
3d708d2342 fix #22, caused by @e6481e3 2014-11-29 17:15:59 +01:00
jomo
dd8a3b91e2 using our own logging, allows us to do some eventual modifications 2014-11-23 23:02:45 +01:00
jomo
e6481e3c73 bug fixes, improvements, fix #13, fix #14 2014-11-23 21:53:42 +01:00
jomo
3830b3ccf4 more tests w/ timeouts 2014-11-22 21:17:49 +01:00
jomo
46f36e9fed speed improvement: don't download files that exist on disk 2014-11-22 01:46:34 +01:00
jomo
5b5462393d nicer logging format 2014-11-22 00:23:44 +01:00
jomo
e828f976f1 removing some errors in networking.skin_file callback
404 shouldn't return an error, null is fine. Setting the error causes that non-existing skins aren't cached. Thus we'd always make a new request to mojang, which will result in hitting the (sessionserver's) rate limit
Removing the error for Too Many Requests for the same reason.
2014-11-22 00:22:08 +01:00
Jake
c717f0f293 Fix an issue with errors being null in skin_file callback 2014-11-20 22:10:07 -06:00
Jake
f95ce50abc Username support 2014-11-20 20:01:39 -06:00
jomo
b59d6ced07 cache non-existing UUIDs 2014-11-02 10:32:35 -06:00
jomo
d9ffa6cc69 make logs useful 2014-11-02 05:24:22 +01:00
jomo
da8ba52717 add redis caching, closes #3. More logs, closes #9 2014-11-02 04:12:00 +01:00
jomo
5f8465c06a fix bug that didn't return error 2014-11-01 21:29:43 +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
a07ca210d6 fix undefined skins_dir, add http_timeout to config 2014-10-29 21:23:36 +01:00
jomo
cc159d3620 split code into more modules, fixes #8 2014-10-29 19:53:27 +01:00