user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 05/10] wwwstream: allow undef noop callback
  2016-07-06  7:14  6% [PATCH 0/10] various misc fixes and updates Eric Wong
@ 2016-07-06  7:14  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-07-06  7:14 UTC (permalink / raw)
  To: meta

This can be use to specify a small response using -html_tip.
---
 lib/PublicInbox/WwwStream.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index 285416d..bce384b 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -9,9 +9,11 @@ use PublicInbox::Hval qw(ascii_html);
 use URI;
 use constant PI_URL => 'https://public-inbox.org/';
 
+sub close {}
+
 sub new {
 	my ($class, $ctx, $cb) = @_;
-	bless { nr => 0, cb => $cb, ctx => $ctx }, $class;
+	bless { nr => 0, cb => $cb || *close, ctx => $ctx }, $class;
 }
 
 sub response {
@@ -99,6 +101,4 @@ sub getline {
 	delete $self->{cb} ? _html_end($self) : undef;
 }
 
-sub close {}
-
 1;
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/10] various misc fixes and updates
@ 2016-07-06  7:14  6% Eric Wong
  2016-07-06  7:14  7% ` [PATCH 05/10] wwwstream: allow undef noop callback Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-07-06  7:14 UTC (permalink / raw)
  To: meta

Close to a milestone with HTML UI consistency!

Eric Wong (10):
      scripts/dc-dlvr: ensure temporary files are removed
      daemon: disable USR2/TTIN/TTOU/WINCH in workers
      hval: get rid of unused parameter for new_msgid
      address: attempt to handle comments somewhat
      wwwstream: allow undef noop callback
      extmsg: disable automatic inbox switching
      extmsg: switch to wwwstream for partial match, too
      view: fix double-escaping of ghost links
      www: use HTML <hr> instead of XHTML <hr />
      feed: fix links to attachments in Atom feed

 lib/PublicInbox/Address.pm     |  6 ++--
 lib/PublicInbox/Daemon.pm      |  3 +-
 lib/PublicInbox/ExtMsg.pm      | 73 +++++++++++++++++++++++++++---------------
 lib/PublicInbox/Feed.pm        |  6 ++--
 lib/PublicInbox/Hval.pm        |  2 +-
 lib/PublicInbox/SearchView.pm  |  6 ++--
 lib/PublicInbox/Unsubscribe.pm |  2 +-
 lib/PublicInbox/View.pm        | 17 +++++-----
 lib/PublicInbox/WwwStream.pm   |  6 ++--
 scripts/dc-dlvr                |  3 +-
 t/address.t                    |  9 ++++++
 11 files changed, 84 insertions(+), 49 deletions(-)
-- 
EW

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-06  7:14  6% [PATCH 0/10] various misc fixes and updates Eric Wong
2016-07-06  7:14  7% ` [PATCH 05/10] wwwstream: allow undef noop callback Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).