mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #784] [MERGED] Fix raw gzip provider responses #4773
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4773
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/784
Author: @Promansis
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Promansis
Base:
main← Head:fix/issue-781-openrouter-gzip📝 Commits (3)
220e125fix(#781): decode raw gzip provider responsese4e8613Address gzip response review feedbackdd1f6e0Merge branch 'main' into fix/issue-781-openrouter-gzip📊 Changes
5 files changed (+131 additions, -6 deletions)
View changed files
📝
packages/server/src/services/llm/base-provider.ts(+6 -3)📝
packages/server/src/services/llm/providers/openai.provider.ts(+7 -2)📝
packages/server/src/utils/security.ts(+20 -1)📝
packages/server/test/openai-provider-reasoning.test.ts(+44 -0)📝
packages/server/test/security-utils.test.ts(+54 -0)📄 Description
Linked issue
Closes #781 and likely #771
Why this change
Content-Encodingheader, which made Marinara display garbled characters or fail JSON parsing.What changed
Content-Encodingis missing.safeFetchresponse-size limits by capping decompressed raw gzip output as well as compressed bytes.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/security-utils.test.ts test/openai-provider-reasoning.test.tssuccessfully.pnpm --filter @marinara-engine/server lintsuccessfully.pnpm checksuccessfully.Docs and release impact
UI evidence (if applicable)
N/A - server/provider response handling only.
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.