Fix support for media types with parameters

Using media types with parameters ("audio/vnd.wave; codec=31" for example) does not work. These commits will fix that, at least for GET requests.