This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Common/src/Interop/Unix/libcurl
System.Net.Http/src/System/Net/Http/Unix Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,16 @@ internal struct CURLMsg
163
163
internal int result ;
164
164
}
165
165
166
- // Curl Version Information
167
- [ StructLayout ( LayoutKind . Explicit ) ]
166
+ // NOTE: The definition of this structure in Curl/curl.h is larger than
167
+ // than what is defined below. This definition is only valid for use with
168
+ // Marshal.PtrToStructure and not for general use in P/Invoke signatures.
169
+ [ StructLayout ( LayoutKind . Sequential ) ]
168
170
internal struct curl_version_info_data
169
171
{
170
- [ FieldOffset ( 0 ) ]
171
172
internal int age ;
172
- [ FieldOffset ( 32 ) ]
173
+ private unsafe char * version ;
174
+ private int versionNum ;
175
+ private unsafe char * host ;
173
176
internal int features ;
174
177
}
175
178
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ internal partial class CurlHandler : HttpMessageHandler
48
48
49
49
#region Fields
50
50
51
- private static bool _supportsAutomaticDecompression ;
52
- private static bool _supportsSSL ;
51
+ private static readonly bool _supportsAutomaticDecompression ;
52
+ private static readonly bool _supportsSSL ;
53
53
private volatile bool _anyOperationStarted ;
54
54
private volatile bool _disposed ;
55
55
private IWebProxy _proxy = null ;
You can’t perform that action at this time.
0 commit comments