Skip to content

BugFix: content-length is counted in bytes #12

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

Merged
merged 2 commits into from
May 11, 2017

Conversation

Lercher
Copy link
Contributor

@Lercher Lercher commented May 9, 2017

Hence we can't use TextReaders and TextWriters in In/OutputHandlers, because otherwise reading chars when there is only a bytes count would be really hard. So I converted everything to streams plus UTF8 Encoding methods plus some test enhancements.

This change is important, because otherwise there is no parsing of text containing non-ASCII characters, which is quite common outside of the US ;-) With it, I can now parse a real Coco/R grammar with a real example :-)

Note: This fix is based on the current OmniSharp/master. As it is some fixes behind, I expect some manual merging.

Martin

@codecov
Copy link

codecov bot commented May 9, 2017

Codecov Report

Merging #12 into master will increase coverage by 0.28%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   65.18%   65.46%   +0.28%     
==========================================
  Files         179      179              
  Lines        1795     1801       +6     
==========================================
+ Hits         1170     1179       +9     
+ Misses        625      622       -3
Impacted Files Coverage Δ
src/JsonRpc/Connection.cs 0% <ø> (ø) ⬆️
src/Lsp/LanguageServer.cs 0% <ø> (ø) ⬆️
src/JsonRpc/InputHandler.cs 93.18% <100%> (+3.52%) ⬆️
src/JsonRpc/OutputHandler.cs 96.96% <100%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 937b3ec...ba38b4c. Read the comment docs.

@david-driscoll
Copy link
Member

@Lercher merged all the other changes, there are a few minor differences to make here, then we're good to go. 👍

@Lercher
Copy link
Contributor Author

Lercher commented May 10, 2017

Did the expected manual merges

@david-driscoll
Copy link
Member

👍

@david-driscoll david-driscoll merged commit 91b1961 into OmniSharp:master May 11, 2017
@Lercher Lercher deleted the omnisharp-content-length branch May 11, 2017 16:11
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