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
62040326
Commit
62040326
authored
Nov 02, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
c2462ce4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
21 deletions
+17
-21
build.ps1
.build/build.ps1
+13
-13
cleanup-cache.txt
.build/cleanup-cache.txt
+1
-0
appveyor.yml
appveyor.yml
+3
-0
RequestResponseBase.cs
src/Titanium.Web.Proxy/Http/RequestResponseBase.cs
+0
-8
No files found.
.build/build.ps1
View file @
62040326
...
@@ -35,7 +35,7 @@ $MSBuild -replace ' ', '` '
...
@@ -35,7 +35,7 @@ $MSBuild -replace ' ', '` '
FormatTaskName
((
"-"
*
25
)
+
"[{0}]"
+
(
"-"
*
25
))
FormatTaskName
((
"-"
*
25
)
+
"[{0}]"
+
(
"-"
*
25
))
#default task
#default task
Task default -depends
Clean, Build, Document, Package, PrepareIntegrationTest
Task default -depends
Package
#cleans obj, b
#cleans obj, b
Task Clean
{
Task Clean
{
...
@@ -43,8 +43,19 @@ Task Clean {
...
@@ -43,8 +43,19 @@ Task Clean {
exec
{
.
$MSBuild
$SolutionFile
/t:Clean /v:quiet
}
exec
{
.
$MSBuild
$SolutionFile
/t:Clean /v:quiet
}
}
}
#install root cetificate needed for integration tests
Task Setup-Integration-Test-Tools -depends Clean
{
$startInfo
=
new-object
System.Diagnostics.ProcessStartInfo
"PowerShell"
;
$startInfo
.Arguments
=
"
$Here
\install-certificate.ps1"
;
$startInfo
.Verb
=
"runas"
;
$process
=
[
System.Diagnostics.Process]::Start
(
$startInfo
)
;
$process
.WaitForExit
()
}
#install build tools
#install build tools
Task Install-BuildTools
-depends Clean
{
Task Install-BuildTools
-depends Setup-Integration-Test-Tools
{
if
(!(
Test-Path
$MSBuild
))
if
(!(
Test-Path
$MSBuild
))
{
{
cinst microsoft-build-tools -y
cinst microsoft-build-tools -y
...
@@ -123,14 +134,3 @@ Task Document -depends Build {
...
@@ -123,14 +134,3 @@ Task Document -depends Build {
Task Package -depends Document
{
Task Package -depends Document
{
exec
{
.
$NuGet
pack
"
$SolutionRoot
\
$ProjectName
\
$ProjectName
.nuspec"
-Properties
Configuration
=
$Configuration
-OutputDirectory
"
$RepoRoot
"
-Version
"
$Version
"
}
exec
{
.
$NuGet
pack
"
$SolutionRoot
\
$ProjectName
\
$ProjectName
.nuspec"
-Properties
Configuration
=
$Configuration
-OutputDirectory
"
$RepoRoot
"
-Version
"
$Version
"
}
}
}
#install root cetificate needed for integration tests
Task PrepareIntegrationTest
{
$startInfo
=
new-object
System.Diagnostics.ProcessStartInfo
"PowerShell"
;
$startInfo
.Arguments
=
"
$Here
\install-certificate.ps1"
;
$startInfo
.Verb
=
"runas"
;
$process
=
[
System.Diagnostics.Process]::Start
(
$startInfo
)
;
$process
.WaitForExit
()
}
\ No newline at end of file
.build/cleanup-cache.txt
0 → 100644
View file @
62040326
* Modify this text to trigger appveyor build cache
\ No newline at end of file
appveyor.yml
View file @
62040326
...
@@ -22,6 +22,9 @@ platform: Any CPU
...
@@ -22,6 +22,9 @@ platform: Any CPU
# build Configuration, i.e. Debug, Release, etc.
# build Configuration, i.e. Debug, Release, etc.
configuration
:
Release
configuration
:
Release
#set file change to watch so that cache can be invalidated on demand.
cache
:
.build\cleanup-cache.txt
# to run your custom scripts instead of automatic MSBuild
# to run your custom scripts instead of automatic MSBuild
build_script
:
build_script
:
-
cmd
:
build.bat Package
-
cmd
:
build.bat Package
...
...
src/Titanium.Web.Proxy/Http/RequestResponseBase.cs
View file @
62040326
...
@@ -49,12 +49,6 @@ namespace Titanium.Web.Proxy.Http
...
@@ -49,12 +49,6 @@ namespace Titanium.Web.Proxy.Http
/// </summary>
/// </summary>
internal
string
OriginalContentEncoding
{
get
;
set
;
}
internal
string
OriginalContentEncoding
{
get
;
set
;
}
/// <summary>
/// Store whether the original request/response body was read by user.
/// We need this detail to syphon out attached tcp connection for reuse.
/// </summary>
public
bool
OriginalIsBodyRead
{
get
;
internal
set
;
}
/// <summary>
/// <summary>
/// Keeps the body data after the session is finished.
/// Keeps the body data after the session is finished.
/// </summary>
/// </summary>
...
@@ -269,7 +263,6 @@ namespace Titanium.Web.Proxy.Http
...
@@ -269,7 +263,6 @@ namespace Titanium.Web.Proxy.Http
OriginalContentLength
=
ContentLength
;
OriginalContentLength
=
ContentLength
;
OriginalIsChunked
=
IsChunked
;
OriginalIsChunked
=
IsChunked
;
OriginalContentEncoding
=
ContentEncoding
;
OriginalContentEncoding
=
ContentEncoding
;
OriginalIsBodyRead
=
IsBodyRead
;
}
}
/// <summary>
/// <summary>
...
@@ -282,7 +275,6 @@ namespace Titanium.Web.Proxy.Http
...
@@ -282,7 +275,6 @@ namespace Titanium.Web.Proxy.Http
OriginalContentLength
=
requestResponseBase
.
OriginalContentLength
;
OriginalContentLength
=
requestResponseBase
.
OriginalContentLength
;
OriginalIsChunked
=
requestResponseBase
.
OriginalIsChunked
;
OriginalIsChunked
=
requestResponseBase
.
OriginalIsChunked
;
OriginalContentEncoding
=
requestResponseBase
.
OriginalContentEncoding
;
OriginalContentEncoding
=
requestResponseBase
.
OriginalContentEncoding
;
OriginalIsBodyRead
=
requestResponseBase
.
OriginalIsBodyRead
;
}
}
/// <summary>
/// <summary>
...
...
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