gopherproxy-c, branch HEADGopher HTTP proxy in C (CGI)
e5016276b57d8cac431d9503c9450cb49f232b182025-08-04T12:43:41Z2025-08-04T12:43:41Zfix typo: DirEntry -> DirEntity (RFC1436)Hiltjo Posthumahiltjo@codemadness.orgcommit e5016276b57d8cac431d9503c9450cb49f232b18
parent 2d459eda3db761482486144a07f60a62447fd577
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 4 Aug 2025 14:43:41 +0200
fix typo: DirEntry -> DirEntity (RFC1436)
2d459eda3db761482486144a07f60a62447fd5772025-08-04T12:41:32Z2025-08-04T12:41:53Zincrease buffer, fix compiler warning (-Wall)Hiltjo Posthumahiltjo@codemadness.orgcommit 2d459eda3db761482486144a07f60a62447fd577
parent 00c13341a4b18c68b1ea0b157c84b840c5f89245
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 4 Aug 2025 14:41:32 +0200
increase buffer, fix compiler warning (-Wall)
00c13341a4b18c68b1ea0b157c84b840c5f892452025-08-04T11:31:21Z2025-08-04T12:41:53Zservedir: some line reading buffer optimizationsHiltjo Posthumahiltjo@codemadness.orgcommit 00c13341a4b18c68b1ea0b157c84b840c5f89245
parent 407a5ede41c92b0b9b711bd376493a579995da36
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 4 Aug 2025 13:31:21 +0200
servedir: some line reading buffer optimizations
407a5ede41c92b0b9b711bd376493a579995da362025-08-03T20:08:02Z2025-08-03T20:08:23Zadd newline after die() message againHiltjo Posthumahiltjo@codemadness.orgcommit 407a5ede41c92b0b9b711bd376493a579995da36
parent b52a2076670c215f88202f0062cbe101b4954055
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 3 Aug 2025 22:08:02 +0200
add newline after die() message again
b52a2076670c215f88202f0062cbe101b49540552025-08-03T19:59:39Z2025-08-03T20:01:06Zadd initial gopher over TLS supportHiltjo Posthumahiltjo@codemadness.orgcommit b52a2076670c215f88202f0062cbe101b4954055
parent f8d0a722a5cb43ef0d208b11dd377ea3b02a8695
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 3 Aug 2025 21:59:39 +0200
add initial gopher over TLS support
f8d0a722a5cb43ef0d208b11dd377ea3b02a86952025-08-03T19:43:42Z2025-08-03T19:43:42Zcode-style: some whitespace fixesHiltjo Posthumahiltjo@codemadness.orgcommit f8d0a722a5cb43ef0d208b11dd377ea3b02a8695
parent 641a71680cc507faa65a1b2c7384d1e3313119ef
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 3 Aug 2025 21:43:42 +0200
code-style: some whitespace fixes
641a71680cc507faa65a1b2c7384d1e3313119ef2025-08-03T19:42:08Z2025-08-03T19:42:08Zinline images: use CSS for max width, do not rescale if the image is smallerHiltjo Posthumahiltjo@codemadness.orgcommit 641a71680cc507faa65a1b2c7384d1e3313119ef
parent 7b02f8a438e1b15796383f446d13f2c8c92d8501
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 3 Aug 2025 21:42:08 +0200
inline images: use CSS for max width, do not rescale if the image is smaller
Otherwise an image would always get rescaled.
7b02f8a438e1b15796383f446d13f2c8c92d85012025-07-09T17:38:19Z2025-07-09T17:38:19Znitpick: use <img />, not <img>Hiltjo Posthumahiltjo@codemadness.orgcommit 7b02f8a438e1b15796383f446d13f2c8c92d8501
parent 0427e35fbc8ab864a4d8507e3f174165633529f1
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 9 Jul 2025 19:38:19 +0200
nitpick: use <img />, not <img>
0427e35fbc8ab864a4d8507e3f174165633529f12025-07-09T17:35:15Z2025-07-09T17:35:15ZLICENSE: bump yearHiltjo Posthumahiltjo@codemadness.orgcommit 0427e35fbc8ab864a4d8507e3f174165633529f1
parent 4c9fcc17502735ad031ee12215fb441c2c27a42f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 9 Jul 2025 19:35:15 +0200
LICENSE: bump year
4c9fcc17502735ad031ee12215fb441c2c27a42f2025-07-09T17:34:43Z2025-07-09T17:34:43Zrender images inlineHiltjo Posthumahiltjo@codemadness.orgcommit 4c9fcc17502735ad031ee12215fb441c2c27a42f
parent e96ccc93928250ede30995cff7bf0e11758b2602
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 9 Jul 2025 19:34:43 +0200
render images inline
Patch by kroovy <me@kroovy.de>:
gopher://kroovy.de/1/phlog/inline-images-patch.gph
With some modifications.
e96ccc93928250ede30995cff7bf0e11758b26022024-11-13T18:41:56Z2024-11-13T19:11:16ZEncode characters for 'q' parameter to get passed and parsed correctlyJulian Schweinsbergpazz0@0xfa.decommit e96ccc93928250ede30995cff7bf0e11758b2602
parent 21855e485f7a47b90546f9039fec6a4b4f382567
Author: Julian Schweinsberg <pazz0@0xfa.de>
Date: Wed, 13 Nov 2024 18:41:56 +0000
Encode characters for 'q' parameter to get passed and parsed correctly
Without encoding the characters '&' and '=' they would be interpreted by
getparam(), this is not correct because these characters are part of the
selector of the gopher URI and shouldn't be interpreted by the
gopherproxy but the gopher server.
Additionally '#' gets escaped or it wouldn't be passed to the
gopherproxy and by this not to the gopher server.
The additional characters get URL escaped, so that no xmlenode is
needed.
For the character '&' gopher://gopherddit.com/1 is a good test case.
21855e485f7a47b90546f9039fec6a4b4f3825672024-08-03T13:03:47Z2024-08-03T13:03:47Zsupport gophers:// by falling back to a plain-text connection (for now)Hiltjo Posthumahiltjo@codemadness.orgcommit 21855e485f7a47b90546f9039fec6a4b4f382567
parent ec71ea5200ff67c6c121dca56c8e50772488163c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 3 Aug 2024 15:03:47 +0200
support gophers:// by falling back to a plain-text connection (for now)
ec71ea5200ff67c6c121dca56c8e50772488163c2024-08-03T13:03:26Z2024-08-03T13:03:26ZMakefile: improve Makefile, sync from hurl MakefileHiltjo Posthumahiltjo@codemadness.orgcommit ec71ea5200ff67c6c121dca56c8e50772488163c
parent 7f0e6929a919fc00a9af4b4858a4d43a89a25e05
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 3 Aug 2024 15:03:26 +0200
Makefile: improve Makefile, sync from hurl Makefile
7f0e6929a919fc00a9af4b4858a4d43a89a25e052024-08-03T13:02:57Z2024-08-03T13:02:57ZLICENSE: bump yearHiltjo Posthumahiltjo@codemadness.orgcommit 7f0e6929a919fc00a9af4b4858a4d43a89a25e05
parent 9f2717d76730fa22c7e533a0a42695d6783e3d20
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 3 Aug 2024 15:02:57 +0200
LICENSE: bump year
9f2717d76730fa22c7e533a0a42695d6783e3d202023-08-30T19:25:15Z2023-08-30T19:25:15ZCSS: use dark mode browser UI when in dark modeHiltjo Posthumahiltjo@codemadness.orgcommit 9f2717d76730fa22c7e533a0a42695d6783e3d20
parent 1d29587a28d81e13a3a7f4f3712dd408ce5726e0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 30 Aug 2023 21:25:15 +0200
CSS: use dark mode browser UI when in dark mode
1d29587a28d81e13a3a7f4f3712dd408ce5726e02023-02-26T15:11:26Z2023-02-26T15:11:26Zpass query string to the gopher selector tooHiltjo Posthumahiltjo@codemadness.orgcommit 1d29587a28d81e13a3a7f4f3712dd408ce5726e0
parent 78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 26 Feb 2023 16:11:26 +0100
pass query string to the gopher selector too
This allows path?something which is useful in CGI programs.
78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a2022-05-16T12:46:40Z2022-05-16T12:46:40Zprint a message if a protocol is not supportedHiltjo Posthumahiltjo@codemadness.orgcommit 78efc56f91b0956fe6e2dcc7919a4dcd64dfe66a
parent b4fcf2516500e0d3979721cae7d91f430e72fa41
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 16 May 2022 14:46:40 +0200
print a message if a protocol is not supported
This would not trigger because URIs are prefixed with gopher:// otherwise.
Reported by parazyd by testing gophers:// which is not supported (yet).
b4fcf2516500e0d3979721cae7d91f430e72fa412022-03-19T10:51:26Z2022-03-19T10:51:26ZCSS dark mode: make links blueHiltjo Posthumahiltjo@codemadness.orgcommit b4fcf2516500e0d3979721cae7d91f430e72fa41
parent 838e8638e0f943519b4575b30175eae223483f9d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Mar 2022 11:51:26 +0100
CSS dark mode: make links blue
838e8638e0f943519b4575b30175eae223483f9d2022-03-19T10:48:14Z2022-03-19T10:48:14Zmake URI parsing a bit more flexible again + sync some URI parse partsHiltjo Posthumahiltjo@codemadness.orgcommit 838e8638e0f943519b4575b30175eae223483f9d
parent e9b0ad3f6eaef101ec93e70846460f9a4127e129
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Mar 2022 11:48:14 +0100
make URI parsing a bit more flexible again + sync some URI parse parts
e9b0ad3f6eaef101ec93e70846460f9a4127e1292022-03-19T10:31:12Z2022-03-19T10:31:12Zsync URL parsing codeHiltjo Posthumahiltjo@codemadness.orgcommit e9b0ad3f6eaef101ec93e70846460f9a4127e129
parent ee13891f6be12921f48b361b571de30442b0f87b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Mar 2022 11:31:12 +0100
sync URL parsing code
ee13891f6be12921f48b361b571de30442b0f87b2022-03-19T10:31:03Z2022-03-19T10:31:03Zbump LICENSE yearHiltjo Posthumahiltjo@codemadness.orgcommit ee13891f6be12921f48b361b571de30442b0f87b
parent e72d2bbbbce501b34da095ba1fc7f2b64e887a3b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Mar 2022 11:31:03 +0100
bump LICENSE year
e72d2bbbbce501b34da095ba1fc7f2b64e887a3b2022-03-19T10:30:56Z2022-03-19T10:30:56ZCSS: add dark modeHiltjo Posthumahiltjo@codemadness.orgcommit e72d2bbbbce501b34da095ba1fc7f2b64e887a3b
parent 920fc67b93ffe777375e5be476c0da85962040eb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 19 Mar 2022 11:30:56 +0100
CSS: add dark mode
920fc67b93ffe777375e5be476c0da85962040eb2019-05-15T17:24:09Z2019-05-15T17:24:09Zenable pledge by default on OpenBSDHiltjo Posthumahiltjo@codemadness.orgcommit 920fc67b93ffe777375e5be476c0da85962040eb
parent 46a7c58d416fe82d8b2d8aed37f9168574e33e46
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 15 May 2019 19:24:09 +0200
enable pledge by default on OpenBSD
it exists since 5.9+
46a7c58d416fe82d8b2d8aed37f9168574e33e462019-05-15T17:20:27Z2019-05-15T17:20:27Zsupport + type, thanks pazz0 for the patchHiltjo Posthumahiltjo@codemadness.orgcommit 46a7c58d416fe82d8b2d8aed37f9168574e33e46
parent f4621b7ad329dfb9e68e7ee2527dacd73c8aac33
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 15 May 2019 19:20:27 +0200
support + type, thanks pazz0 for the patch
This supports multiple mirror types. It uses the last non-+ type as described
in the RFC. If a + type is specified without a previous type then it is an
error. Also allow the + type with 'h', because "why not".
f4621b7ad329dfb9e68e7ee2527dacd73c8aac332019-05-15T17:05:35Z2019-05-15T17:05:35ZREADME: document restrictionsHiltjo Posthumahiltjo@codemadness.orgcommit f4621b7ad329dfb9e68e7ee2527dacd73c8aac33
parent 42c1f9f2c86049e667c4037b241bb04492cd36c7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 15 May 2019 19:05:35 +0200
README: document restrictions
42c1f9f2c86049e667c4037b241bb04492cd36c72019-05-15T17:05:25Z2019-05-15T17:05:25Zrename dial to edial, reset timeout values before setsockoptHiltjo Posthumahiltjo@codemadness.orgcommit 42c1f9f2c86049e667c4037b241bb04492cd36c7
parent 4e8119f7c820b0898e1c07b41dabe1b8c72318f8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 15 May 2019 19:05:25 +0200
rename dial to edial, reset timeout values before setsockopt
4e8119f7c820b0898e1c07b41dabe1b8c72318f82018-08-30T19:42:00Z2018-08-30T19:42:00Zoutput correct HTML on error when dir handlingHiltjo Posthumahiltjo@codemadness.orgcommit 4e8119f7c820b0898e1c07b41dabe1b8c72318f8
parent 84b61467b8eb24067b1d4bcf306edfb65c0e5c3d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 30 Aug 2018 21:42:00 +0200
output correct HTML on error when dir handling
thanks sdk for noticing and reporting it!
84b61467b8eb24067b1d4bcf306edfb65c0e5c3d2018-08-30T15:50:55Z2018-08-30T15:50:55ZREADME: clarify tor and torsocks useHiltjo Posthumahiltjo@codemadness.orgcommit 84b61467b8eb24067b1d4bcf306edfb65c0e5c3d
parent 31bf0e0fa53e34bf32a57257f6e306a67ea813a6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 30 Aug 2018 17:50:55 +0200
README: clarify tor and torsocks use
31bf0e0fa53e34bf32a57257f6e306a67ea813a62018-08-21T15:43:52Z2018-08-21T15:43:52Zimprove uri parsing according to the RFC specHiltjo Posthumahiltjo@codemadness.orgcommit 31bf0e0fa53e34bf32a57257f6e306a67ea813a6
parent ab450f6020e7a69eaba6446167ba25b9d296a5d9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 21 Aug 2018 17:43:52 +0200
improve uri parsing according to the RFC spec
the path doesn't have to start with /
ab450f6020e7a69eaba6446167ba25b9d296a5d92018-08-19T19:01:21Z2018-08-19T19:07:40ZREADME: add instructions for tor proxyingtrqx@goat.sitrqx@goat.sicommit ab450f6020e7a69eaba6446167ba25b9d296a5d9
parent 01c9ba076423824ce71944c7af6e0c3f24960ec8
Author: trqx@goat.si <trqx@goat.si>
Date: Sun, 19 Aug 2018 21:01:21 +0200
README: add instructions for tor proxying
01c9ba076423824ce71944c7af6e0c3f24960ec82018-08-19T17:00:20Z2018-08-19T18:45:03ZREADME: add caddy configurationtrqx@goat.sitrqx@goat.sicommit 01c9ba076423824ce71944c7af6e0c3f24960ec8
parent f7929385112388c25324b99525a88df3daba908c
Author: trqx@goat.si <trqx@goat.si>
Date: Sun, 19 Aug 2018 19:00:20 +0200
README: add caddy configuration
f7929385112388c25324b99525a88df3daba908c2018-08-19T16:55:25Z2018-08-19T18:43:43ZREADME: fix typotrqx@goat.sitrqx@goat.sicommit f7929385112388c25324b99525a88df3daba908c
parent 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d
Author: trqx@goat.si <trqx@goat.si>
Date: Sun, 19 Aug 2018 18:55:25 +0200
README: fix typo
9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d2018-08-17T16:50:11Z2018-08-17T16:50:11ZREADME: add CGI configuration examplesHiltjo Posthumahiltjo@codemadness.orgcommit 9513ef706fdb1d0fe7ec1c8f6da1fb78ed573f2d
parent e21c517078a89ad1023d7ac0c5db8aa5eecab7a9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 18:50:11 +0200
README: add CGI configuration examples
e21c517078a89ad1023d7ac0c5db8aa5eecab7a92018-08-17T16:37:32Z2018-08-17T16:37:32Zminor code-styleHiltjo Posthumahiltjo@codemadness.orgcommit e21c517078a89ad1023d7ac0c5db8aa5eecab7a9
parent 9612b7ed97d46f386db7334b7ef880038a92df8c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 18:37:32 +0200
minor code-style
9612b7ed97d46f386db7334b7ef880038a92df8c2018-08-17T16:37:09Z2018-08-17T16:37:09Zparseuri: support IPv6 address for hostHiltjo Posthumahiltjo@codemadness.orgcommit 9612b7ed97d46f386db7334b7ef880038a92df8c
parent d0cd571a262cbbca3c7d12f08799e6835552bf13
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 18:37:09 +0200
parseuri: support IPv6 address for host
d0cd571a262cbbca3c7d12f08799e6835552bf132018-08-17T16:36:45Z2018-08-17T16:36:45Zblacklist path not starting with / and ports other than 70 or 7070Hiltjo Posthumahiltjo@codemadness.orgcommit d0cd571a262cbbca3c7d12f08799e6835552bf13
parent 0c008b2c7e67000e28de30bb3fc85b956a7645e0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 18:36:45 +0200
blacklist path not starting with / and ports other than 70 or 7070
0c008b2c7e67000e28de30bb3fc85b956a7645e02018-08-17T14:08:59Z2018-08-17T14:08:59Ztelnet/tn3270: don't use @ if username is emptyHiltjo Posthumahiltjo@codemadness.orgcommit 0c008b2c7e67000e28de30bb3fc85b956a7645e0
parent 9890cde16cba2a03048800bfd81919b0bf9f0e5c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 16:08:59 +0200
telnet/tn3270: don't use @ if username is empty
9890cde16cba2a03048800bfd81919b0bf9f0e5c2018-08-17T14:08:52Z2018-08-17T14:08:52ZREADME: Gopher+ is not supportedHiltjo Posthumahiltjo@codemadness.orgcommit 9890cde16cba2a03048800bfd81919b0bf9f0e5c
parent 328eee3a3a6814914911e25e3447adb9cc09f4ba
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 16:08:52 +0200
README: Gopher+ is not supported
328eee3a3a6814914911e25e3447adb9cc09f4ba2018-08-17T14:01:10Z2018-08-17T14:01:10Zfor the gif type set Content-Type explicitly, try image detection by extensionHiltjo Posthumahiltjo@codemadness.orgcommit 328eee3a3a6814914911e25e3447adb9cc09f4ba
parent 2188db7bb8e13eb43c8e61376baf0381be3af513
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 16:01:10 +0200
for the gif type set Content-Type explicitly, try image detection by extension
2188db7bb8e13eb43c8e61376baf0381be3af5132018-08-17T14:00:45Z2018-08-17T14:00:45Zhandle telnet and tn3270 typesHiltjo Posthumahiltjo@codemadness.orgcommit 2188db7bb8e13eb43c8e61376baf0381be3af513
parent ba4a6bfff30969bbea9529f7852cd4b929421fbe
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 16:00:45 +0200
handle telnet and tn3270 types
ba4a6bfff30969bbea9529f7852cd4b929421fbe2018-08-17T14:00:07Z2018-08-17T14:00:07Zdisplay more types as documented in the RFC, distinguish reserved typesHiltjo Posthumahiltjo@codemadness.orgcommit ba4a6bfff30969bbea9529f7852cd4b929421fbe
parent b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 16:00:07 +0200
display more types as documented in the RFC, distinguish reserved types
b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e8972018-08-17T13:59:38Z2018-08-17T13:59:38ZMakefile: when changing Makefile: rebuildHiltjo Posthumahiltjo@codemadness.orgcommit b8a14c3c0df0a4d9ad6eca8bc772ca0140a0e897
parent 1a3a39b35b6a350bec8b37e833639a671717c59e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 15:59:38 +0200
Makefile: when changing Makefile: rebuild
1a3a39b35b6a350bec8b37e833639a671717c59e2018-08-17T13:59:20Z2018-08-17T13:59:20ZMakefile: build static by defaultHiltjo Posthumahiltjo@codemadness.orgcommit 1a3a39b35b6a350bec8b37e833639a671717c59e
parent 63d1799106c7f186d008b3085f1d6059c99b2681
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 15:59:20 +0200
Makefile: build static by default
63d1799106c7f186d008b3085f1d6059c99b26812018-08-17T13:58:26Z2018-08-17T13:58:26ZREADME: update and document workaround for a bug with nginx 1.12Hiltjo Posthumahiltjo@codemadness.orgcommit 63d1799106c7f186d008b3085f1d6059c99b2681
parent 2922b5f38556aacf5dd1c6928b34be60a07cec7b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 15:58:26 +0200
README: update and document workaround for a bug with nginx 1.12
2922b5f38556aacf5dd1c6928b34be60a07cec7b2018-08-17T10:50:40Z2018-08-17T10:50:40Zfix: initialize uri also when query is emptyHiltjo Posthumahiltjo@codemadness.orgcommit 2922b5f38556aacf5dd1c6928b34be60a07cec7b
parent 37d95c874eab8ad35bd95ad3381405310934cd08
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 17 Aug 2018 12:50:40 +0200
fix: initialize uri also when query is empty
+ minor code-style.
37d95c874eab8ad35bd95ad3381405310934cd082018-08-14T12:23:31Z2018-08-14T12:23:31Zdial error: add newlineHiltjo Posthumahiltjo@codemadness.orgcommit 37d95c874eab8ad35bd95ad3381405310934cd08
parent dbe80c7d9f93688585348abacbde2cd22c5373a9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 14 Aug 2018 14:23:31 +0200
dial error: add newline
dbe80c7d9f93688585348abacbde2cd22c5373a92018-08-13T10:42:29Z2018-08-13T10:45:51ZAdd Linux compile support.Christoph Lohmann20h@r-36.netcommit dbe80c7d9f93688585348abacbde2cd22c5373a9
parent c203aa551a7deb54746100ba0532d5e6d234ad85
Author: Christoph Lohmann <20h@r-36.net>
Date: Mon, 13 Aug 2018 12:42:29 +0200
Add Linux compile support.
c203aa551a7deb54746100ba0532d5e6d234ad852018-08-12T17:28:28Z2018-08-12T17:28:28Zfor uri use a simple pointer: no copy is neededHiltjo Posthumahiltjo@codemadness.orgcommit c203aa551a7deb54746100ba0532d5e6d234ad85
parent 68d669677f9f159d33c5b8f369f716edd2dd91e0
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 19:28:28 +0200
for uri use a simple pointer: no copy is needed
68d669677f9f159d33c5b8f369f716edd2dd91e02018-08-12T17:28:09Z2018-08-12T17:28:09Zfix fallthrough, search items were displayed incorrectlyHiltjo Posthumahiltjo@codemadness.orgcommit 68d669677f9f159d33c5b8f369f716edd2dd91e0
parent a3dbec3aff240cf18792ac54e40d7ea04dae4d07
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 19:28:09 +0200
fix fallthrough, search items were displayed incorrectly
a3dbec3aff240cf18792ac54e40d7ea04dae4d072018-08-12T17:27:16Z2018-08-12T17:27:16Zuse dprintf and reorder so a fflush is not needed, saves some linesHiltjo Posthumahiltjo@codemadness.orgcommit a3dbec3aff240cf18792ac54e40d7ea04dae4d07
parent 09feebbc6b6947493acdadf0afca1a61da517c40
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 19:27:16 +0200
use dprintf and reorder so a fflush is not needed, saves some lines
+ minor cleanup
09feebbc6b6947493acdadf0afca1a61da517c402018-08-12T17:26:29Z2018-08-12T17:26:29Zfor normal info text prefix with type (spaces) so it aligns properlyHiltjo Posthumahiltjo@codemadness.orgcommit 09feebbc6b6947493acdadf0afca1a61da517c40
parent f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f6
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 19:26:29 +0200
for normal info text prefix with type (spaces) so it aligns properly
f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f62018-08-12T17:10:23Z2018-08-12T17:10:23Zsimplify item type handling, make shorter urisHiltjo Posthumahiltjo@codemadness.orgcommit f3ee251cc87fed2ff5ef4f8b9679c03cad71a5f6
parent 536c656498826de19a9aa266f59831df7ef74b5f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 19:10:23 +0200
simplify item type handling, make shorter uris
make shorter uri by removing gopher:// and the port if it is "70".
536c656498826de19a9aa266f59831df7ef74b5f2018-08-12T16:30:20Z2018-08-12T16:41:41Zfix include for timeJosuah Demangeonmail@josuah.netcommit 536c656498826de19a9aa266f59831df7ef74b5f
parent 40a6ccd6cfb99c2849dff4501a54bc7752b63620
Author: Josuah Demangeon <mail@josuah.net>
Date: Sun, 12 Aug 2018 18:30:20 +0200
fix include for time
musl-libc seems to use <sys/time.h> instead of <time.h>
$ find /usr/include -name '*.ch' -exec grep '^struct timeval' {} +
...
/usr/include/sys/time.h: struct timeval it_interval;
/usr/include/sys/time.h: struct timeval it_value;
...
OpenBSD has this in <sys/time.h>:
#ifndef _TIMEVAL_DECLARED
#define _TIMEVAL_DECLARED
/*
* Structure returned by gettimeofday(2) system call,
* and used in other calls.
*/
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* and microseconds */
};
#endif
40a6ccd6cfb99c2849dff4501a54bc7752b636202018-08-12T16:14:09Z2018-08-12T16:14:09Zinitial repoHiltjo Posthumahiltjo@codemadness.orgcommit 40a6ccd6cfb99c2849dff4501a54bc7752b63620
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 12 Aug 2018 18:14:09 +0200
initial repo