Skip to content

Fix multipart response for server-keygen.#51

Merged
jjrdk merged 3 commits into
masterfrom
features/fix-multipart-response
Apr 19, 2026
Merged

Fix multipart response for server-keygen.#51
jjrdk merged 3 commits into
masterfrom
features/fix-multipart-response

Conversation

@jjrdk
Copy link
Copy Markdown
Owner

@jjrdk jjrdk commented Apr 19, 2026

Fix server-keygen response for multipart content

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the EST /serverkeygen multipart response so clients/tests can reliably parse it as multipart content (including the required boundary parameter).

Changes:

  • Update ServerKeyGenHandler to emit the multipart response using MultipartContent.Headers.ContentType (includes boundary) via Results.Stream.
  • Update conformance tests to parse the response body as multipart and validate per-part content types.
  • Remove the now-unneeded MultipartContentResult implementation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
tests/opencertserver.certserver.tests/StepDefinitions/EstConformance.cs Switches validation from raw text search to multipart parsing for server-keygen responses.
src/opencertserver.est.server/Handlers/ServerKeyGenHandler.cs Streams MultipartContent with a Content-Type header that includes the boundary parameter.
src/opencertserver.est.server/Response/MultipartContentResult.cs Deletes the custom IResult previously used to write multipart responses.

Comment thread tests/opencertserver.certserver.tests/StepDefinitions/EstConformance.cs Outdated
Comment thread tests/opencertserver.certserver.tests/StepDefinitions/EstConformance.cs Outdated
Comment thread tests/opencertserver.certserver.tests/StepDefinitions/EstConformance.cs Outdated
jjrdk and others added 2 commits April 19, 2026 16:23
…rmance.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…rmance.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jjrdk jjrdk merged commit 941b3b0 into master Apr 19, 2026
7 checks passed
@jjrdk jjrdk deleted the features/fix-multipart-response branch April 19, 2026 14:36
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