zendesk/freshbooks_app — pull request #12 by benhass (2014-05-28 00:46:03+00:00)
Title: [ZD#672511] fix FreshBooks app encoding error

:bug:

Rack assumes the request is x-www-form-urlencoded unless the Content-Type header is explicitly set:
https://github.com/rack/rack/blob/1.4.5/lib/rack/request.rb#L171

```
Unexpected error while processing request: invalid %-encoding ("1.0" encoding="UTF-8"?>

20130
156576
1
Ticket: 28 12%
1

)
/opt/boxen/rbenv/versions/2.1.0/lib/ruby/2.1.0/uri/common.rb:901:in `decode_www_form_component'
```

#### References:

- [[ZD#672511] FreshBooks app errors out when a % is present in the notes field](https://support.zendesk.com/agent/#/tickets/672511)

/cc @maximeprades @liulikun