Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
84d5e5ef
Commit
84d5e5ef
authored
May 26, 2017
by
justcoding121
Committed by
justcoding121
May 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
0ea90e0c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
SessionEventArgs.cs
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
+1
-2
RunTime.cs
Titanium.Web.Proxy/Helpers/RunTime.cs
+5
-2
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+1
-0
No files found.
Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs
View file @
84d5e5ef
...
@@ -111,8 +111,7 @@ namespace Titanium.Web.Proxy.EventArguments
...
@@ -111,8 +111,7 @@ namespace Titanium.Web.Proxy.EventArguments
private
async
Task
ReadRequestBody
()
private
async
Task
ReadRequestBody
()
{
{
//GET request don't have a request body to read
//GET request don't have a request body to read
var
method
=
WebSession
.
Request
.
Method
.
ToUpper
();
if
(!
WebSession
.
Request
.
HasBody
)
if
(
method
!=
"POST"
&&
method
!=
"PUT"
&&
method
!=
"PATCH"
)
{
{
throw
new
BodyNotFoundException
(
"Request don't have a body. "
+
throw
new
BodyNotFoundException
(
"Request don't have a body. "
+
"Please verify that this request is a Http POST/PUT/PATCH and request "
+
"Please verify that this request is a Http POST/PUT/PATCH and request "
+
...
...
Titanium.Web.Proxy/Helpers/RunTime.cs
View file @
84d5e5ef
...
@@ -8,12 +8,15 @@ namespace Titanium.Web.Proxy.Helpers
...
@@ -8,12 +8,15 @@ namespace Titanium.Web.Proxy.Helpers
internal
class
RunTime
internal
class
RunTime
{
{
/// <summary>
/// <summary>
///
Checks if current run time is Mono
///
cache for mono runtime check
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
internal
static
Lazy
<
bool
>
isRunningOnMono
private
static
Lazy
<
bool
>
isRunningOnMono
=
new
Lazy
<
bool
>(()=>
Type
.
GetType
(
"Mono.Runtime"
)
!=
null
);
=
new
Lazy
<
bool
>(()=>
Type
.
GetType
(
"Mono.Runtime"
)
!=
null
);
/// <summary>
/// Is running on Mono?
/// </summary>
internal
static
bool
IsRunningOnMono
=>
isRunningOnMono
.
Value
;
internal
static
bool
IsRunningOnMono
=>
isRunningOnMono
.
Value
;
}
}
}
}
Titanium.Web.Proxy/ProxyServer.cs
View file @
84d5e5ef
...
@@ -476,6 +476,7 @@ namespace Titanium.Web.Proxy
...
@@ -476,6 +476,7 @@ namespace Titanium.Web.Proxy
if
(!
RunTime
.
IsRunningOnMono
)
if
(!
RunTime
.
IsRunningOnMono
)
{
{
//clear orphaned windows auth states every 2 minutes
WinAuthEndPoint
.
ClearIdleStates
(
2
);
WinAuthEndPoint
.
ClearIdleStates
(
2
);
}
}
...
...
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