Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6e520d9c
Commit
6e520d9c
authored
Aug 25, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1297 from SaitoWu/issues/1269
fix git push body bigger than 112k problem
parents
6d4ae75f
74d65bb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
config/initializers/grack_auth.rb
config/initializers/grack_auth.rb
+5
-5
No files found.
config/initializers/grack_auth.rb
View file @
6e520d9c
...
...
@@ -42,13 +42,13 @@ module Grack
def
current_ref
if
@env
[
"HTTP_CONTENT_ENCODING"
]
=~
/gzip/
input
=
Zlib
::
GzipReader
.
new
(
@request
.
body
).
string
input
=
Zlib
::
GzipReader
.
new
(
@request
.
body
).
read
else
input
=
@request
.
body
.
string
input
=
@request
.
body
.
read
end
oldrev
,
newrev
,
ref
=
input
.
split
(
' '
)
/refs\/heads\/([\w-]+)/
.
match
(
ref
).
to_a
.
la
st
# Need to reset seek point
@request
.
body
.
rewind
/refs\/heads\/([\w-]+)/
.
match
(
input
).
to_a
.
fir
st
end
end
# Auth
end
# Grack
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