Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
8c9a59c2
Commit
8c9a59c2
authored
7 years ago
by
Sergey Linev
Committed by
Bertrand Bellenot
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
http: clang-format of modified sources
parent
772252ff
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
net/http/inc/THttpServer.h
+2
-1
2 additions, 1 deletion
net/http/inc/THttpServer.h
net/http/src/TCivetweb.cxx
+4
-2
4 additions, 2 deletions
net/http/src/TCivetweb.cxx
net/http/src/THttpServer.cxx
+158
-110
158 additions, 110 deletions
net/http/src/THttpServer.cxx
with
164 additions
and
113 deletions
net/http/inc/THttpServer.h
+
2
−
1
View file @
8c9a59c2
...
@@ -44,7 +44,8 @@ protected:
...
@@ -44,7 +44,8 @@ protected:
TString
fDefaultPageCont
;
///<! content of the file content
TString
fDefaultPageCont
;
///<! content of the file content
TString
fDrawPage
;
///<! file name for drawing of single element
TString
fDrawPage
;
///<! file name for drawing of single element
TString
fDrawPageCont
;
///<! content of draw page
TString
fDrawPageCont
;
///<! content of draw page
TString
fCors
;
///<! CORS (cross-origin resource sharing): sets Access-Control-Allow-Origin for ProcessRequest responses
TString
fCors
;
///<! CORS (cross-origin resource sharing): sets Access-Control-Allow-Origin for ProcessRequest responses
std
::
mutex
fMutex
;
///<! mutex to protect list with arguments
std
::
mutex
fMutex
;
///<! mutex to protect list with arguments
TList
fCallArgs
;
///<! submitted arguments
TList
fCallArgs
;
///<! submitted arguments
...
...
This diff is collapsed.
Click to expand it.
net/http/src/TCivetweb.cxx
+
4
−
2
View file @
8c9a59c2
...
@@ -401,10 +401,12 @@ Bool_t TCivetweb::Create(const char *args)
...
@@ -401,10 +401,12 @@ Bool_t TCivetweb::Create(const char *args)
// first extract port number
// first extract port number
sport
=
""
;
sport
=
""
;
while
((
*
args
!=
0
)
&&
(
*
args
!=
'?'
)
&&
(
*
args
!=
'/'
))
sport
.
Append
(
*
args
++
);
while
((
*
args
!=
0
)
&&
(
*
args
!=
'?'
)
&&
(
*
args
!=
'/'
))
sport
.
Append
(
*
args
++
);
// than search for extra parameters
// than search for extra parameters
while
((
*
args
!=
0
)
&&
(
*
args
!=
'?'
))
args
++
;
while
((
*
args
!=
0
)
&&
(
*
args
!=
'?'
))
args
++
;
if
(
*
args
==
'?'
)
{
if
(
*
args
==
'?'
)
{
TUrl
url
(
TString
::
Format
(
"http://localhost/folder%s"
,
args
));
TUrl
url
(
TString
::
Format
(
"http://localhost/folder%s"
,
args
));
...
...
This diff is collapsed.
Click to expand it.
net/http/src/THttpServer.cxx
+
158
−
110
View file @
8c9a59c2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment