Skip to content

Conversation

@SentryMan
Copy link
Collaborator

@SentryMan SentryMan commented Jun 24, 2023

Fixes wrong headers being added when body content exceeds a certain size. Also adds a flag to disable Jsonb direct writes.

@rbygrave rbygrave changed the title (Javalin Jsonb) Write directly to Jetty HttpOutput Stream (Javalin Jsonb) Add support for disableDirectWrites to NOT write directly to Jetty HttpOutput Stream Jun 25, 2023
@rbygrave rbygrave self-assigned this Jun 25, 2023
@rbygrave rbygrave added this to the 1.43 milestone Jun 25, 2023
@rbygrave rbygrave merged commit eff54cb into avaje:master Jun 25, 2023
@SentryMan SentryMan deleted the patch-1 branch June 25, 2023 20:05
@rbygrave
Copy link
Contributor

rbygrave commented Jun 25, 2023

It would have been good to have a failing test case. Behaviour of Javalin can change and also if helps explain the change to future devs looking at why this PR came to be.

@SentryMan
Copy link
Collaborator Author

In this case, it disconnects from Javalin even more, as we skip Javalin's CompressedOutputStream and lean more on Jetty directly. Which means it's less likely for Javalin behavior changes to affect serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants