Invoke curl with the same options of other cgis - gophercgis - Collection of gopher CGI/DCGI for geomyidae
(HTM) hg clone https://bitbucket.org/iamleot/gophercgis
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) changeset edb836b4ea5aab68db5dcbbe2419896467af6a59
(DIR) parent 953bfc8f19f72ee490a2e9dc2a253d0be8cc748b
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 16 Dec 2018 02:50:57
Invoke curl with the same options of other cgis
Diffstat:
twitter/tweets.dcgi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 953bfc8f19f7 -r edb836b4ea5a twitter/tweets.dcgi
--- a/twitter/tweets.dcgi Sun Dec 16 02:47:06 2018 +0100
+++ b/twitter/tweets.dcgi Sun Dec 16 02:50:57 2018 +0100
@@ -40,7 +40,7 @@
echo "<div class=\"user-actions\"";
echo " data-screen-name=\"${username}\"";
echo " data-name=\"${name}\">";
- curl -s "${url}" | jq -r '.items_html';
+ curl -Lgs -- "${url}" | jq -r '.items_html';
} | tscrape
}