Skip to content

fix: incorrect content-length value in headers#10

Open
oxyflour wants to merge 1 commit into
thibauts:masterfrom
oxyflour:master
Open

fix: incorrect content-length value in headers#10
oxyflour wants to merge 1 commit into
thibauts:masterfrom
oxyflour:master

Conversation

@oxyflour

Copy link
Copy Markdown

Hello! This PR fixes "socket hang up" issue when I'm trying to send contents including Chinese characters. The "content-length" should be the byte length of the buffer rather than the string length, or the remote server may close the connection too early and truncate the posting content unexpectedly.

This fix "socket hang up" issue when I'm trying to send contents including Chinese characters
@thibauts

Copy link
Copy Markdown
Owner

Awesome 😊. Can you explain the change from property to e:property in your first commit ? Thanks !

@oxyflour

oxyflour commented Dec 9, 2017

Copy link
Copy Markdown
Author

Oh, that was an accident. I should not have pushed that commit :-)

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