Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add HEAD as a standard Http request

  • Loading branch information...
commit 0837bec2f1e6e2f1d5a56be98987156af10575f3 1 parent a705696
@carllerche carllerche authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/kirk/client/group.rb
View
2  lib/kirk/client/group.rb
@@ -50,7 +50,7 @@ def request(method = nil, url = nil, handler = nil, body = nil, headers = {})
request
end
- %w/get post put delete/.each do |method|
+ %w/get post put delete head/.each do |method|
class_eval <<-RUBY
def #{method}(url, headers = nil, handler = nil)
request(:#{method.upcase}, url, headers, handler)
Please sign in to comment.
Something went wrong with that request. Please try again.