Permalink
Browse files

fixed a bug with TestApi where the headers weren't set properly

  • Loading branch information...
1 parent 61db8b6 commit e0b71cc237d359520c3632d4fe1e8b06b4419263 @mattetti committed Apr 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_helpers.rb
View
@@ -26,8 +26,8 @@ module TestApi
module_function
URL_PLACEHOLDER = /\/*(:[a-z A-Z _]+)\/*/
- INTERNAL_X_HEADER = AuthHelpers::INTERNAL_X_HEADER
- MOBILE_X_HEADER = AuthHelpers::MOBILE_X_HEADER
+ INTERNAL_X_HEADER = AuthHelpers::INTERNAL_X_HEADER[/HTTP_(.*)/, 1] # strip the header marker added by Rack
+ MOBILE_X_HEADER = AuthHelpers::MOBILE_X_HEADER[/HTTP_(.*)/, 1] # strip the header marker added by Rack
def request(verb, uri, params={}, headers=nil)
params ||= {}

0 comments on commit e0b71cc

Please sign in to comment.