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
Jérome Perrin
gitlab-ce
Commits
74d65bb8
Commit
74d65bb8
authored
Aug 25, 2012
by
Saito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix git push body bigger than 112k problem
parent
1ef1a4ae
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 @
74d65bb8
...
...
@@ -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