Skip to content

Commit

Permalink
pybridge: Fix http cockpit print channel
Browse files Browse the repository at this point in the history
This should be "real" http-stream2 channel. http-stream1 is for the
internal packages service, which is already `packages`.

(Plus, it was spelled wrong.)
  • Loading branch information
martinpitt authored and jelly committed Nov 6, 2023
1 parent 9128156 commit 5bf378f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cockpit/misc/print.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def http(self,
done: bool = True,
channel: Optional[str] = None,
**kwargs: Any) -> None:
"""Open a http1-stream channel. Sends a 'done' as well, unless done=False."""
self.open('http-stream1', path=path, method=method, channel=channel, **kwargs)
"""Open a http-stream2 channel. Sends a 'done' as well, unless done=False."""
self.open('http-stream2', path=path, method=method, channel=channel, **kwargs)
if done:
self.done()

Expand Down

0 comments on commit 5bf378f

Please sign in to comment.