kim (grufwub)
dba96a6f97
add socket read/write deadline flags to usage section
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:30:58 +01:00
kim (grufwub)
66c1f446eb
slight rewording
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:17:40 +01:00
kim (grufwub)
d9684e06c8
add error checking to fail-out when failing to render gophermap section
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 19:15:51 +01:00
kim (grufwub)
d16d7b6972
correct URL encoding item in features list
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:55:06 +01:00
kim (grufwub)
8a67a88660
use net/url's path parser, pass more Request objects round instead of RequestPath
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:54:06 +01:00
kim (grufwub)
9a57822766
update with status of text and string encoding
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 17:52:19 +01:00
kim (grufwub)
89b76c0aa4
update code comment
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:15:28 +01:00
kim (grufwub)
2ce15bb00d
update features to more accurately reflect gophermap usage and handling
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:14:51 +01:00
kim (grufwub)
3ca8450a84
update gophermap + cgi-bin path checks to use regex (should be more reliable)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-14 13:10:31 +01:00
kim (grufwub)
5aa62ebfa7
improve file remap regex matching
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 14:04:16 +01:00
kim (grufwub)
d927113b42
update README.md with file-remap usage information
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:53:16 +01:00
kim (grufwub)
c4b814cacd
update README.md to remove in-line command references
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:51:01 +01:00
kim (grufwub)
303a6bbcd0
remove in-line shell command support, add initial remap (according to regex) support
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-12 13:48:21 +01:00
kim (grufwub)
c9134e3792
update deadlines
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 17:30:59 +01:00
kim (grufwub)
0f9420e7f6
fix build script overwriting build log for each file build
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 17:00:02 +01:00
kim (grufwub)
d1732b30d8
version bump
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:10:56 +01:00
kim (grufwub)
5d4f90e6e8
update README with new flags
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:08:57 +01:00
kim (grufwub)
f8357bfcf6
update flag setting
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-10 10:08:40 +01:00
kim (grufwub)
340f746930
add support for CGI HTTP status checking, also disabling CGI HTTP compat
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-09 17:49:31 +01:00
kim (grufwub)
38e9bd4a6d
rename stripwriter to HttpStripWriter, improve it, handle http status codes
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-09 16:33:38 +01:00
kim (grufwub)
665d6dad35
update usage flags
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 17:53:10 +01:00
kim (grufwub)
ab82b53b2a
fix critical bug with broken directory listing selectors
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 17:39:31 +01:00
kim (grufwub)
43ddf00b36
massively improve code commenting, fix SkipPrefixWriter bug
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-08 16:52:17 +01:00
Kim
45e77db911
Merge pull request #15 from EaterLabs/feature/fixedmap/make-it-lru
...
[fixedmap] make fixedmap a LRU cache
2020-05-08 09:49:57 +01:00
eater
ae00a36d83
[fixedmap] make fixedmap a LRU cache
...
Signed-off-by: eater <=@eater.me>
2020-05-08 10:02:19 +02:00
kim (grufwub)
61554f10b4
move CgiEnabled checks all to execute(), makes ensuring CGI disabled MUCH easier
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:48:16 +01:00
kim (grufwub)
0c4c48d9d3
fix up file-remap help print
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:19:34 +01:00
kim (grufwub)
4bf0e88ac6
finish up changes to virtual file remapping implementation
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 21:15:47 +01:00
kim (grufwub)
0b8c3b41ba
add virtual filesystem support (remapping file paths)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 20:52:25 +01:00
kim (grufwub)
32e8a47073
update to generate same header text for both policy files
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 19:17:35 +01:00
kim (grufwub)
9e91ad37f1
remove debug prints, fix GophermapCommandSection not breaking out early as it should
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 19:16:21 +01:00
kim (grufwub)
6576d436f7
move constants to config (user modifiable), support CGI header stripping
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 17:08:06 +01:00
kim (grufwub)
026a89c759
stop even subgophermaps from being cached within gophermap, same reasoning as regular files
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 09:16:37 +01:00
kim (grufwub)
c7ae3fd151
more big changes
...
- Current Request structure renamed to Responder
- Request's RequestPath and Parameters separated into
new Request structure
- Responder sent on calls to render to filecontents,
but creation / caching of filecontents stores onto a
a copy of Request instead (as we don't need the extra host
or client info held by Responder)
- Cached gophermaps now do not cache regular files within them
if inserted, as these files could be over the cache file size
limit
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-07 08:59:53 +01:00
kim (grufwub)
10c9f02eb3
rename connwrapper and gophorconn to make more sense
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 21:08:04 +01:00
kim (grufwub)
a6a779aaf0
turn gophorconn --> connwrapper, gophorconn now wraps net.conn with deadline setting
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 20:53:07 +01:00
kim (grufwub)
e27f7aea81
modify error sending to use WriteFlush to ensure writer flushed
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:47:32 +01:00
kim (grufwub)
9ea253d9bb
switch underlying request writer to use a buffered writer
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:21:21 +01:00
kim (grufwub)
d87774a70d
rearrange flag parsing (to match README) + add charset ready
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 18:21:00 +01:00
kim (grufwub)
201531dfcb
Merge branch 'development' of github.com:grufwub/gophor into development
2020-05-06 13:35:17 +01:00
kim (grufwub)
e527e42f63
rename buildError function
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 13:35:06 +01:00
Kim
7e46973475
Merge pull request #14 from YtvwlD/missing-tabs
...
Re-add missing tabs in gophermaps
2020-05-06 13:28:56 +01:00
kim (grufwub)
9440866bed
update compliance and references sections
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:44:40 +01:00
Niklas Sombert
07e72f89bf
Re-add missing tabs in gophermaps
...
8dae2ab
splits them at tabs but fails to re-add them when joining afterwards.
2020-05-06 13:44:29 +02:00
kim (grufwub)
57563d0a0e
update README usage and compliance text
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:11:42 +01:00
kim (grufwub)
5008294b28
update README.md usage section
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 12:02:49 +01:00
kim (grufwub)
8e3272270d
improve README.md (ignore mention of this in last commit)
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 11:39:24 +01:00
kim (grufwub)
8dae2abb6f
move struct member usage to instead be struct methods, improve README.md
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-06 11:38:53 +01:00
kim (grufwub)
0042ba10c4
remove broken gophor-run script for now
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:56:05 +01:00
kim (grufwub)
d78499da66
example script to allow running gophor and grabbing config from file
...
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:49:51 +01:00