Skip to content

SseBuilder in ServerResponse should allow empty comment #34608

Closed
@rstoyanchev

Description

@rstoyanchev

SseBuilder#comment expects the comment to have length. However, an empty comment is accepted and is commonly sent as a keepalive message.

The spec has this for the ABNF:

comment = colon *any-char end-of-line

And also for parsing guidelines:

If the line starts with a U+003A COLON character (:)
Ignore the line.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions