Skip to content

Commit

Permalink
add http proxy handler
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLocal committed Jun 27, 2024
1 parent ec3d429 commit 5743b2d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ macro_rules! box_to_mut_void_ptr {
pub(crate) fn as_cstr_array<T: Into<Vec<u8>> + Clone>(
arr: &[T],
) -> *mut *const ::std::os::raw::c_char {
if arr.is_empty() {
return std::ptr::null_mut();
}
let mut tmp: Vec<_> = arr
.iter()
.map(|s| std::ffi::CString::new::<T>(s.to_owned()).unwrap())
Expand Down

0 comments on commit 5743b2d

Please sign in to comment.