handle http accept headers more gracefully

Fixes Raydiation/ocdev#23

@bantu @MorrisJobke @Kondou-ger @DeepDiver1975  
What about upper-/lowercase?