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
5fb387be
Commit
5fb387be
authored
May 26, 2017
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
1dd43e7b
Hide 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 @
5fb387be
...
...
@@ -111,8 +111,7 @@ namespace Titanium.Web.Proxy.EventArguments
private
async
Task
ReadRequestBody
()
{
//GET request don't have a request body to read
var
method
=
WebSession
.
Request
.
Method
.
ToUpper
();
if
(
method
!=
"POST"
&&
method
!=
"PUT"
&&
method
!=
"PATCH"
)
if
(!
WebSession
.
Request
.
HasBody
)
{
throw
new
BodyNotFoundException
(
"Request don't have a body. "
+
"Please verify that this request is a Http POST/PUT/PATCH and request "
+
...
...
Titanium.Web.Proxy/Helpers/RunTime.cs
View file @
5fb387be
...
...
@@ -8,12 +8,15 @@ namespace Titanium.Web.Proxy.Helpers
internal
class
RunTime
{
/// <summary>
///
Checks if current run time is Mono
///
cache for mono runtime check
/// </summary>
/// <returns></returns>
internal
static
Lazy
<
bool
>
isRunningOnMono
private
static
Lazy
<
bool
>
isRunningOnMono
=
new
Lazy
<
bool
>(()=>
Type
.
GetType
(
"Mono.Runtime"
)
!=
null
);
/// <summary>
/// Is running on Mono?
/// </summary>
internal
static
bool
IsRunningOnMono
=>
isRunningOnMono
.
Value
;
}
}
Titanium.Web.Proxy/ProxyServer.cs
View file @
5fb387be
...
...
@@ -476,6 +476,7 @@ namespace Titanium.Web.Proxy
if
(!
RunTime
.
IsRunningOnMono
)
{
//clear orphaned windows auth states every 2 minutes
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