Skip to content

Commit

Permalink
const.go: add mising options, try fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 5, 2014
1 parent c014778 commit 4917f2a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion const.go
Expand Up @@ -488,7 +488,15 @@ const (
// unsupported
// OPT_CLOSESOCKETFUNCTION = C.CURLOPT_CLOSESOCKETFUNCTION
// OPT_CLOSESOCKETDATA = C.CURLOPT_CLOSESOCKETDATA
// alias
OPT_GSSAPI_DELEGATION = C.CURLOPT_GSSAPI_DELEGATION
OPT_DNS_SERVERS = C.CURLOPT_DNS_SERVERS
OPT_ACCEPTTIMEOUT_MS = C.CURLOPT_ACCEPTTIMEOUT_MS
OPT_TCP_KEEPALIVE = C.CURLOPT_TCP_KEEPALIVE
OPT_TCP_KEEPIDLE = C.CURLOPT_TCP_KEEPIDLE
OPT_TCP_KEEPINTVL = C.CURLOPT_TCP_KEEPINTVL
OPT_SSL_OPTIONS = C.CURLOPT_SSL_OPTIONS
OPT_MAIL_AUTH = C.CURLOPT_MAIL_AUTH
// for alias
OPT_WRITEDATA = C.CURLOPT_WRITEDATA
OPT_READDATA = C.CURLOPT_READDATA
OPT_HEADERDATA = C.CURLOPT_HEADERDATA
Expand Down Expand Up @@ -681,6 +689,11 @@ const (
IPRESOLVE_V6 = C.CURL_IPRESOLVE_V6
)

// for easy.Setopt(OPT_SSL_OPTIONS, flag)
const (
SSLOPT_ALLOW_BEAST = 1
)

// for easy.Pause(flat)
const (
PAUSE_RECV = C.CURLPAUSE_RECV
Expand Down

0 comments on commit 4917f2a

Please sign in to comment.