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
Tatuya Kamada
gitlab-ce
Commits
82956a03
Commit
82956a03
authored
Sep 20, 2014
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7798 from spuder/issue#7763
Adds support for ruby 1.8 in webhook example
parents
24c79205
b9f05087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
doc/web_hooks/web_hooks.md
doc/web_hooks/web_hooks.md
+4
-2
No files found.
doc/web_hooks/web_hooks.md
View file @
82956a03
...
...
@@ -124,12 +124,14 @@ Save the following file as `print_http_body.rb`.
```
ruby
require
'webrick'
server
=
WEBrick
::
HTTPServer
.
new
(
Port
:
ARGV
.
first
)
server
=
WEBrick
::
HTTPServer
.
new
(
:Port
=>
ARGV
.
first
)
server
.
mount_proc
'/'
do
|
req
,
res
|
puts
req
.
body
end
trap
'INT'
do
server
.
shutdown
end
trap
'INT'
do
server
.
shutdown
end
server
.
start
```
...
...
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