Skip to content

Commit

Permalink
Disable max request length for Git HTTP protocol requests. Fixes #57.
Browse files Browse the repository at this point in the history
  • Loading branch information
otac0n committed Apr 5, 2014
1 parent 1b0c427 commit 936226d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion WebGitNet/ActionResults/GitStreamResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override void ExecuteResult(ControllerContext context)
Stream wrapperStream = null;
try
{
var input = realRequest.GetBufferlessInputStream();
var input = realRequest.GetBufferlessInputStream(disableMaxRequestLength: true);
if (request.Headers["Content-Encoding"] == "gzip")
{
input = wrapperStream = new GZipStream(input, CompressionMode.Decompress);
Expand Down
1 change: 0 additions & 1 deletion WebGitNet/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
</system.webServer>
</location>
<system.web>
<httpRuntime maxRequestLength="10485760" />
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Expand Down

0 comments on commit 936226d

Please sign in to comment.