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 wrong Content-Length #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix wrong Content-Length #16

wants to merge 1 commit into from

Conversation

fashberg
Copy link

Hey!

The static page sets Content-Length to a wrong size resulting in endless loops or errors when requesting.

Based on https://github.com/nicholasamorim/dockerfile-uts-server i'm running uts-server in a kubernetes-cluster and k8s health check fails with this content-length bug.

I suggest just removing Content-Length, it is not required at all (https://datatracker.ietf.org/doc/html/rfc2616#section-14.13 SHOULD)

# wget http://10.42.0.70:2020
--2021-05-20 14:51:06--  http://10.42.0.70:2020/
Connecting to 10.42.0.70:2020... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2774 (2.7K) [text/html]
Saving to: ‘index.html’

index.html                                                           96%[==========================================================================================================================================================>       ]   2.61K  --.-KB/s    in 0s

2021-05-20 14:51:06 (542 MB/s) - Connection closed at byte 2670. Retrying.

--2021-05-20 14:51:07--  (try: 2)  http://10.42.0.70:2020/
Connecting to 10.42.0.70:2020... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2774 (2.7K) [text/html]

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.

None yet

1 participant