path: root/
diff options
authordefanor <>2019-03-30 05:59:59 +0300
committerdefanor <>2019-03-30 05:59:59 +0300
commit7897035179f7eebaf149d75e772ec3d99d56708d (patch)
tree2be03e6828b20ff21d2aa9a8c9315e73c3515eb2 /
parentc0a142f95bca54ec38aecc86ce38dfac2432ac50 (diff)
Handle `auth=try`
Serve pages with status code 401 if `auth` is set to `try`, but credentials are not present.
Diffstat (limited to '')
1 files changed, 3 insertions, 0 deletions
diff --git a/ b/
index 2d7f07c..f5343e9 100644
--- a/
+++ b/
@@ -72,6 +72,9 @@ authentication, and the provided credentials are used directly for
PostgreSQL authentication. HTTP authentication also gets requested if
a database connection failure was password-related.
+With `auth=try` pgxhtml would serve pages composed using defaults if
+no credentials are provided, but with 401 status code.
### Web server
This is intended to be used with an HTTP server, which would take care