Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
87972f6c
Commit
87972f6c
authored
May 25, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
常量定义修复
parent
499661ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
TCurlClient.php
classes/fpf/thrift/TCurlClient.php
+4
-2
No files found.
classes/fpf/thrift/TCurlClient.php
View file @
87972f6c
...
...
@@ -205,8 +205,10 @@ class TCurlClient extends \Thrift\Transport\TTransport
curl_setopt
(
self
::
$curlHandle
,
CURLOPT_CUSTOMREQUEST
,
'POST'
);
curl_setopt
(
self
::
$curlHandle
,
CURLOPT_FOLLOWLOCATION
,
true
);
curl_setopt
(
self
::
$curlHandle
,
CURLOPT_MAXREDIRS
,
1
);
$cookie
=
VERSION_KEY
.
'='
.
VERSION_VALUE_NO_PTEFIX
;
curl_setopt
(
self
::
$curlHandle
,
CURLOPT_COOKIE
,
$cookie
);
if
(
defined
(
'VERSION_KEY'
)
&&
defined
(
'VERSION_VALUE_NO_PTEFIX'
))
{
$cookie
=
VERSION_KEY
.
'='
.
VERSION_VALUE_NO_PTEFIX
;
curl_setopt
(
self
::
$curlHandle
,
CURLOPT_COOKIE
,
$cookie
);
}
}
// God, PHP really has some esoteric ways of doing simple things.
$host
=
$this
->
host_
.
(
$this
->
port_
!=
80
?
':'
.
$this
->
port_
:
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment