handle http accept headers more gracefully

Fixes Raydiation/ocdev#23

@bantu @MorrisJobke @Kondou-ger @DeepDiver1975  
ah right, will fix that, thanks for the hint :)