Commit Graph

103 Commits

Author SHA1 Message Date
zefie
c511632e91 fix streamed data out 2021-08-12 00:55:04 -04:00
zefie
896bba7c4b Revert "undo streaming data out"
This reverts commit d37c2f60ec.
2021-08-12 00:42:54 -04:00
zefie
d37c2f60ec undo streaming data out 2021-08-11 23:18:09 -04:00
zefie
e32913b10d fix 2021-08-11 22:55:18 -04:00
zefie
4009b9d2f7 hopefully fix POST issues again 2021-08-11 22:09:48 -04:00
zefie
853218713a update output streaming 2021-08-11 20:17:57 -04:00
zefie
0f0cc623c0 streaming output data with drain detection support
- other stuff x.x
2021-08-11 19:48:27 -04:00
zefie
fecbd032da POST test 3? 2021-08-11 12:10:05 -04:00
zefie
97d65320ca POST test 2 2021-08-11 12:05:52 -04:00
zefie
3d37c45f59 do not process wtv/download-list 2021-08-11 11:48:32 -04:00
zefie
fe7e076ff0 add calculating message 2021-08-11 11:44:34 -04:00
zefie
8e234e4841 POST test 1 2021-08-11 11:33:42 -04:00
zefie
da6827a377 dyslexia is fun :/ 2021-08-11 11:20:25 -04:00
zefie
181d276820 catch error 2021-08-11 11:04:25 -04:00
zefie
d16b979ea9 oops 2021-08-11 01:59:23 -04:00
zefie
1403080eda fix catchall log string 2021-08-11 01:58:13 -04:00
zefie
8655417927 do not wtv-checksum on 0 byte content 2021-08-11 01:29:45 -04:00
zefie
95442a12af lots more stuff
- proper gzip download for disk system (aka WNI reinventing the Content-Encoding: gzip wheel)
- send Last-Modified for static files
- send wtv-checksum for all disk system downloads
- other fixes
2021-08-11 01:11:09 -04:00
Eric MacDonald
53998c236b Add ratio to compression log line 2021-08-10 22:57:55 -04:00
Eric MacDonald
7b3b7325a7 Change to % reduced so it's more useful info (ratio is usually uncomp_size:comp_size) 2021-08-10 22:57:54 -04:00
zefie
3dd6e51832 hopefully fix POST for real
- main function still could use a rewrite
- more class branching and moving of functions
- Pass minisrv_config to classes
2021-08-10 21:41:34 -04:00
zefie
5d07f02490 remove 'psuedo-encryption' crap
- was really just the caused by an early minisrv bug
2021-08-10 20:21:12 -04:00
zefie
ca72399c08 move security check function
to try to clean up hellish data stream function
2021-08-10 20:10:46 -04:00
zefie
12d50f6e1c fix post data 2021-08-10 19:14:40 -04:00
zefie
e9c883d85a too much to remember
- rewrote sync system yet again
- more classes
    - WTVShared class for shared functions
    - clientShowAlert class for easy client:showalert urls
- User File Store
    - Can upload with PUT commands in wtv-disk
    - Programmically access files with new functions in WTVClientSessionData
    - TODO: file browser
- other stuff I can't remember
2021-08-10 18:30:59 -04:00
zefie
83f44d7867 Move download list stuff to WTVDownloadList class
- easier to create your own download list in JS
- possible future client upload ability via PUT
2021-08-10 13:31:29 -04:00
zefie
dd5b274784 rewrite wtv-disk system
- move wtv-update to wtv-disk
- allow accessing wtv-disk:/sync?group=&diskmap=
- rewrite Download List generation to be more proper
- only send files if diskmap has changed
- allow force redownload with &force=true
2021-08-10 00:20:03 -04:00
zefie
9f9bebf351 fix content type overrides 2021-08-09 23:40:27 -04:00
zefie
b87c1adac0 don't compress files under 256 bytes 2021-08-09 18:57:29 -04:00
zefie
23535780f3 remove this for now
- bf0app does it when logging back in with a tellyscript
- server did its job but box was not responding to wtv-visit
2021-08-09 18:48:14 -04:00
Eric MacDonald
56ab5228cd fix encryption errors 2021-08-09 18:48:13 -04:00
Eric MacDonald
f28d63708c Scratch that. Do what offers better compression over replicating the service. RC4 is too random 2021-08-09 18:48:13 -04:00
Eric MacDonald
fa02d6c802 Less problems compressing after RC4 2021-08-09 18:48:13 -04:00
zefie
4a2dc1680d add catchall system & http pc server
- define a catchall name to run globally or per service
- catchall must be javascript, but not necessarily a .js file
- catchall can request async mode
- catchall will catch any non-existing requests under its directory
- see wtv-flashrom:/content/content-serve.js as an example, which will catch wtv-flashrom:/content/ URLs.

- http pc: sends HTTP/1.0 to PC clients
- can be disabled with `pc_server_hidden_service_enabled`: false
- can change servicevault path by changing string of pc_server_hidden_service
- get.js in default PC service vault to get any WTV Url on the service
2021-08-09 17:38:34 -04:00
zefie
28c2c80889 more accurately mimic WTVP
by accepting URLs without /
2021-08-09 15:03:04 -04:00
zefie
fe53525b39 do not compress if softmodem minibrowser 2021-08-09 14:07:14 -04:00
zefie
7d102033fc fix socket cleanup timeout system 2021-08-09 13:07:44 -04:00
zefie
376aadd762 Revert "respect Connection: close"
This reverts commit c09d0d6989.
2021-08-09 10:47:38 -04:00
zefie
62eba01ddd only compress if http status 200 2021-08-09 10:47:26 -04:00
zefie
a426a36a24 fix quiet logging undefined bytes 2021-08-08 23:34:15 -04:00
zefie
1aa1755664 update wtv-home:/home
- remove spacing in favor of right alignment
- add compression status
2021-08-08 22:55:22 -04:00
zefie
72f1c989c6 add gzip compression for LC2 and newer 2021-08-08 22:25:42 -04:00
zefie
f0861e2f21 improve session retention 2021-08-08 19:54:29 -04:00
zefie
e09af90908 further fix d4e355a0a3
- was only replacing one +
- code for single post element was erroneous
2021-08-08 18:06:55 -04:00
zefie
cc88570466 WTVP does not use \r, so swapping the internal header's usage for now. May remove internal header in future update 2021-08-08 15:34:45 -04:00
zefie
514a4bf11d missed this in d4e355a0a3 2021-08-08 15:03:31 -04:00
zefie
75c59d9e56 re-add git commit to console version string 2021-08-08 14:26:17 -04:00
zefie
d4e355a0a3 fix e5d5b1e8e7 2021-08-08 14:25:05 -04:00
zefie
e5d5b1e8e7 unescape query arguments during processing 2021-08-08 14:18:50 -04:00
zefie
acd90bc66b fix some mstv sim related issues 2021-08-08 13:11:54 -04:00