Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Send Accept-Encoding header

  • Loading branch information...
commit 1585def6b86b80b748397b3699ca7b579a14926b 1 parent d5ff699
@ryanwilliams ryanwilliams authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/vworkapp_ruby/base/resource.rb
View
9 lib/vworkapp_ruby/base/resource.rb
@@ -19,10 +19,11 @@ class Resource < Base
base_uri "https://api.vworkapp.com/api/2.0"
# http_proxy 'localhost', 8888
- headers({
- "Content-Type" => "text/xml",
- "User-Agent" => "Ruby.vWorkApp.API"
- })
+ headers(
+ 'Content-Type' => 'text/xml',
+ 'User-Agent' => 'Ruby.vWorkApp.API',
+ 'Accept-Encoding' => 'gzip,deflate',
+ )
# ------------------
# Active Model
Please sign in to comment.
Something went wrong with that request. Please try again.