Commit Graph

308 Commits

Author SHA1 Message Date
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
kim (grufwub)
3a41efcc5b huge changes
- massively improve request handling -- passes request object between
  functions now to encapsulate all the data needed

- writing is now handled by the passed request object with attached
  writer

- files > max cached file size and fed directly to socket now instead
  of read into buffer first (which would have caused MAJOR memory issues)

- CGI support further fleshed out, and timer started for child processes
  that attempts to kill them if they don't clean up in time

- probably many more fixes i'm forgetting

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 23:46:50 +01:00
kim (grufwub)
4ea4280cd0 add support for disabling CGI support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-05 09:35:29 +01:00
kim (grufwub)
9f32233d28 update build scripts to look for version string in right location
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:34:09 +01:00
kim (grufwub)
c68056e341 update exec.go to show our ANGERY stance on $PATH_INFO
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:31:24 +01:00
kim (grufwub)
9415d4dec2 update README.md todos
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:01:36 +01:00
kim (grufwub)
82da35afbc remove filesystem_request.go (moved to request.go)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:01:17 +01:00
kim (grufwub)
6ac26c2225 further fixes to CGI 1.1 implementation
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 20:00:53 +01:00
kim (grufwub)
810d57ad66 fix request string parsing to skip initial '?' in request
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 18:24:13 +01:00
kim (grufwub)
6cd6adecca move requestpath contents into filesystemrequest, which is passed everywhere instead of individual variables
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-04 18:19:56 +01:00
kim (grufwub)
14f181372d add CGI environment variables (unset) according to CGI spec
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:49:19 +01:00
kim (grufwub)
c2bc70d5f5 update README.md to be more open about current state of CGI-bin support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:08:55 +01:00
kim (grufwub)
eaf0a22717 update features in README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 23:04:59 +01:00
Kim
a8c11e57c5
Update README.md 2020-05-03 22:49:38 +01:00
kim (grufwub)
2377f7bd0b version bump!
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 22:44:34 +01:00
kim (grufwub)
ee88bce8da update README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 22:43:49 +01:00
kim (grufwub)
eac520031a inline shell commands, executable gophermaps, initial cgi-bin support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-03 22:42:51 +01:00
kim (grufwub)
01eb36a814 add new log options to features
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 23:00:00 +01:00
kim (grufwub)
e198276e44 update README with new flags
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 22:58:31 +01:00
kim (grufwub)
d089c8a932 version bump + move some filecontents.go logic to format.go
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 22:46:58 +01:00
kim (grufwub)
41d6f279fc replace logging system + add support for log options + toggleable output
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 22:34:49 +01:00
kim (grufwub)
9e3dfe50ad set abspath to be calculated at RequestPath creation
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 10:36:02 +01:00
kim (grufwub)
ac20b9d6b3 move RootDir variable to be stored in ConnHost (will help with virtual hosts in future)
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-02 08:42:12 +01:00
kim (grufwub)
75db1de42f add pre-release tag to version bump
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 17:17:29 +01:00
kim (grufwub)
e40581bd09 version bump
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 17:17:12 +01:00
kim (grufwub)
804df8bb26 remove requestpath's abspath member, modify function names
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 17:07:59 +01:00
kim (grufwub)
442404e592 add more informative error messages after parsed flags
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 17:07:30 +01:00
kim (grufwub)
1e83dbd8cb comment out caps.txt line
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 15:27:04 +01:00
kim (grufwub)
3784a8267a modify '-rootless' flag description text
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 15:25:35 +01:00
kim (grufwub)
706dc0cbd6 modify '-root' flag name to differentiate from '-rootless'
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 15:19:23 +01:00
kim (grufwub)
e03ff381e3 fix rootless support
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 15:16:38 +01:00
kim (grufwub)
0893652b65 add RequestPath to handle relative+absolute paths, move sanitization logic here
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-05-01 15:08:47 +01:00
kim (grufwub)
77a9bba013 add footer text to features, move usage below features
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 16:02:13 +01:00
Kim
1f9dae642c
Merge pull request #10 from grufwub/development
remove example gophor-run script
2020-04-30 15:57:15 +01:00
kim (grufwub)
298d8ee1db remove example gophor-run script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 15:56:19 +01:00
Kim
b7a78597e6
Merge pull request #9 from grufwub/development
v0.5-alpha development pull
2020-04-30 15:38:08 +01:00
kim (grufwub)
fcbf3892cf update default gophor footer text to "" and place previous default in gophor-run
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 15:24:08 +01:00
kim (grufwub)
881ce04f41 version bump
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 15:22:57 +01:00
kim (grufwub)
75e2d2a4e6 update gophor-run script + mention gophor-run in README.md
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 15:21:38 +01:00
kim (grufwub)
14e83298eb add example gophor-run script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 15:11:35 +01:00
kim (grufwub)
3340789009 update flag text descriptions
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
2020-04-30 14:00:05 +01:00