Module: WEBrick::HTTPUtils

Defined in:
lib/auchandirect/scrAPI/webrick_uri_escape_monkey_patch.rb

Overview

monkey patch to avoid a regex uri encoding error when importing

incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string) (Encoding::CompatibilityError)
.../webrick/httputils.rb:353:in `gsub'
.../webrick/httputils.rb:353:in `_escape'
.../webrick/httputils.rb:363:in `escape'
from uri method

I would be glad to find a better way to fix this !

Class Method Summary collapse

Class Method Details

.escape(s) ⇒ Object



34
35
36
# File 'lib/auchandirect/scrAPI/webrick_uri_escape_monkey_patch.rb', line 34

def self.escape(s)
  URI.escape(s)
end