Skip to content

JAV-489 resolve Edge service return Cotent-Length error#247

Merged
seanyinx merged 1 commit intoapache:masterfrom
jeho0815:master
Nov 7, 2017
Merged

JAV-489 resolve Edge service return Cotent-Length error#247
seanyinx merged 1 commit intoapache:masterfrom
jeho0815:master

Conversation

@jeho0815
Copy link
Copy Markdown
Contributor

@jeho0815 jeho0815 commented Nov 6, 2017

if return the content-lengh from server, can't change the body, so remove this header

…e content-lengh from server, can't change the body, so remove this header
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.006%) to 86.44% when pulling 598f659 on jeho0815:master into 871a076 on ServiceComb:master.

for (Entry<String, List<Object>> entry : response.getHeaders().getHeaderMap().entrySet()) {
for (Object value : entry.getValue()) {
responseEx.addHeader(entry.getKey(), String.valueOf(value));
if (!entry.getKey().equalsIgnoreCase(HttpHeaders.CONTENT_LENGTH)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe it's better to remove HttpHeaders.CONTENT_LENGTH after the loop

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

has no method to do this, to do this, has add an another method

@seanyinx seanyinx merged commit 213e7b0 into apache:master Nov 7, 2017
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.

4 participants