Permalink
Browse files

Update services/web.rb

add a user agent
  • Loading branch information...
1 parent a3a57a4 commit 142513f53e4f9f6d3445a1cfbbe1d28e059de25e @technoweenie technoweenie committed Dec 22, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 services/web.rb
View
1 services/web.rb
@@ -30,6 +30,7 @@ def receive_event
# and GET params are added to the POST body
http.url_prefix = url
http.headers['X-GitHub-Event'] = event.to_s
+ http.headers['User-Agent'] = 'GitHub Services Web Hook'
if data['insecure_ssl'].to_i == 1
http.ssl[:verify] = false

0 comments on commit 142513f

Please sign in to comment.