Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [SUP-1501] stop setting content-length explicitly to avoid truncating responses #209

Merged
merged 7 commits into from
Jul 7, 2022

Conversation

bstewart00
Copy link
Contributor

@bstewart00 bstewart00 commented Jul 5, 2022

https://wovnio.atlassian.net/browse/SUP-1501?focusedCommentId=49877

Setting Content-Length header isn't mandatory but can lead to truncation if not set correctly.

Also added some convenience debugging utilities while investigating this issue:

  • Add wovnEncodingOverride debug query parameter to force the response encoding when wovnjava receives the original HTML. Only available in debug mode. There is an encoding setting in the wovnjava configuration file, but this allows us to change the encoding for a single request.
  • wovnDebugMode now shows the request logs as a HTML comment for debugging purposes (when debug mode is enabled in settings)

…t set correctly.

Add wovnEncodingOverride debug query parameter to force the response encoding when wovnjava receives the original HTML.
wovnDebugMode now shows the request logs as a HTML comment for debugging purposes.
@bstewart00 bstewart00 changed the title fix: stop setting content-length explicitly to avoid truncating responses fix: [SUP-1501] stop setting content-length explicitly to avoid truncating responses Jul 5, 2022
@bstewart00 bstewart00 force-pushed the fix/truncated_response_and_logging branch from 637b99f to 5fec2f1 Compare July 7, 2022 02:33
@bstewart00 bstewart00 merged commit 1e71318 into master Jul 7, 2022
@bstewart00 bstewart00 deleted the fix/truncated_response_and_logging branch July 7, 2022 04:42
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.

3 participants