Skip to content

accept null utf char#37

Merged
ianpartridge merged 2 commits intomasterfrom
allowNullChar
Apr 16, 2018
Merged

accept null utf char#37
ianpartridge merged 2 commits intomasterfrom
allowNullChar

Conversation

@Andrew-Lees11
Copy link
Copy Markdown
Contributor

Replaced the system for converting data to string.
Previously data had a null terminator added on the end and was converted to a pointer which was then used to read as a string up to the null terminator. If the user sent a null terminator in their string then their message would only be read up to that point.

Now the Data is converted straight to a utf8 string and sent on.

Test added to check this behavior.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #37 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
- Coverage   92.33%   92.27%   -0.07%     
==========================================
  Files           9        9              
  Lines         496      492       -4     
==========================================
- Hits          458      454       -4     
  Misses         38       38
Flag Coverage Δ
#KituraWebSocket 92.27% <100%> (-0.07%) ⬇️
Impacted Files Coverage Δ
Sources/KituraWebSocket/WebSocketConnection.swift 92.06% <100%> (-0.17%) ⬇️

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 5eaae44...4f6f60e. Read the comment docs.

@ianpartridge ianpartridge merged commit 592bd2a into master Apr 16, 2018
@ianpartridge ianpartridge deleted the allowNullChar branch April 16, 2018 16:16
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