Skip to content

Commit

Permalink
Merge pull request #99 from musm/patch-1
Browse files Browse the repository at this point in the history
Update dep takebuf_array method
  • Loading branch information
quinnj committed Mar 19, 2017
2 parents fcab83b + e336acc commit b4c4250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
julia 0.5
BinDeps
@osx Homebrew
Compat 0.9.5
2 changes: 2 additions & 0 deletions src/MbedTLS.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
__precompile__(true)
module MbedTLS

using Compat

export
# Message digests
MD_NONE,
Expand Down
2 changes: 1 addition & 1 deletion src/ssl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function Base.readavailable(ctx::SSLContext)
b = IOBuffer()
write(b, read(ctx, 1))
write(b, read(ctx, nb_available(ctx)))
return takebuf_array(b)
return take!(b)
end

function Base.eof(ctx::SSLContext)
Expand Down

0 comments on commit b4c4250

Please sign in to comment.