We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d46bd commit 0476ddbCopy full SHA for 0476ddb
test/ssl.jl
@@ -23,7 +23,7 @@ const infotype_str = Dict(
23
24
function curl_debug_cb(handle::Ptr{Cvoid}, type::Cint, data::Ptr{Cvoid}, sz::Csize_t, clientp::Ptr{Cvoid})
25
debug_buffer = unsafe_pointer_to_objref(clientp)::IOBuffer
26
- data = UInt8[unsafe_load(reinterpret(Ptr{Cuchar}, data), n) for n in 1:sz]
+ data = unsafe_wrap(Array, reinterpret(Ptr{UInt8}, data), sz)
27
println(debug_buffer, "$(infotype_str[type]) \"$(String(data))\"")
28
return Cint(0)
29
end
0 commit comments