packages feed

gopher-proxy 0.1.1.2 → 0.1.1.3

raw patch · 5 files changed

+14/−7 lines, 5 filesdep ~attoparsec

Dependency ranges changed: attoparsec

Files

ChangeLog.md view
@@ -1,5 +1,12 @@ # Revision history for gopher-proxy +## 0.1.1.3 -- 2021-10-25++* Support (and require) `attoparsec >= 0.14`+* Fix parsing of the `--default-mime-type` flag: Previoulsy the+  `Read` instance was used and thus required the user to surround+  the mime type with (extra) quotes.+ ## 0.1.1.1 -- 2017-01-06  * Add missing documentation for `--title`
README.md view
@@ -17,7 +17,7 @@ * `--css-url`: The http path of the css file, defaults to `/gopher-proxy.css` (should be changed, if your gopher server has a file with the same name * `--base-url`: The path of the directory which will appear as root directory of gopher-proxy to the user, defaults to `/`. Should be changed if you configured your proxying web server to expose gopher-proxy as, say `/gopher-space/`. * `--listen-public`: If this flag is set, gopher-proxy will accept connections on its public IP address(es).-* `--default-mime-type`: Mime type to use if spacecookie can't guess it, defaults to "application/octet-stream"+* `--default-mime-type`: Mime type to use if gopher-proxy can't guess it, defaults to "application/octet-stream" * `--timeout`: connection timeout in milliseconds, defaults to 10 seconds. * `--server-name`: The server name of the server to proxy, defaults to the host name. This value is used to detect wether a menu item is pointing to another gopher server than the proxied one. This is particularly useful, if you use e. g. `127.0.0.1` instead of the public host name. * `--title`: Sets the first part of the HTML title-tag, defaults to `gopher-proxy`.
gopher-proxy.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                gopher-proxy-version:             0.1.1.2+version:             0.1.1.3 synopsis:            proxy gopher over http description:   @gopher-proxy@ allows to proxy gopher over HTTP, which is mainly useful for HTTP-ifying a specific gopher space.@@ -29,7 +29,7 @@ license:             GPL-3 license-file:        LICENSE author:              sternenseemann-maintainer:          git@lukasepple.de+maintainer:          sternenseemann@systemli.org category:            Network build-type:          Simple cabal-version:       >=1.10@@ -54,7 +54,7 @@                      , bytestring                      , text                      , network-                     , attoparsec+                     , attoparsec >= 0.14                      , errors                      , mime-types                      , optparse-applicative
src/GopherProxy/Params.hs view
@@ -62,10 +62,10 @@   <*> switch     (long "listen-public"     <> help "wether gopher-proxy should accept connection on public IP addresses.")-  <*> optionalWithDefault defaultMimeType (option auto+  <*> optionalWithDefault defaultMimeType (option utf8ByteString     (long "default-mime-type"     <> metavar "MIMETYPE"-    <> help "spacecookie uses this mimetype, if it can't guess the type, defaults to application/octet-stream"))+    <> help "gopher-proxy uses this mimetype, if it can't guess the type, defaults to application/octet-stream"))   <*> optionalWithDefault 10000000 (option auto     (long "timeout"     <> metavar "MILLISECONDS"
src/Main.hs view
@@ -117,7 +117,7 @@   hdl <- socketToHandle sock ReadWriteMode   hSetBuffering hdl NoBuffering   B.hPutStr hdl (req <> "\r\n")-  resp <- BS.hGetContents hdl+  resp <- B.hGetContents hdl   pure $ case parseOnly (gopherResponseParser Nothing) resp of     Left _ -> Nothing     Right r -> case r of