Skip to content

Commit

Permalink
Fix bug where port numbers in URL stop MJPEG from working (openhab#17551
Browse files Browse the repository at this point in the history
)

Signed-off-by: Matthew Skinner <matt@pcmus.com>
  • Loading branch information
Skinah authored and matchews committed Oct 18, 2024
1 parent a8c64f9 commit 3895057
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
}
}
if (msg instanceof HttpContent content) {
if (mjpegUri.equals(requestUrl) && !(content instanceof LastHttpContent)) {
if (mjpegUri.endsWith(requestUrl) && !(content instanceof LastHttpContent)) {
// multiple MJPEG stream packets come back as this.
byte[] chunkedFrame = new byte[content.content().readableBytes()];
content.content().getBytes(content.content().readerIndex(), chunkedFrame);
Expand Down

0 comments on commit 3895057

Please sign in to comment.