fatal when not html content #49

Closed
naonak opened this Issue Jul 22, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@naonak

naonak commented Jul 22, 2011

Sometimes, link seem to deserve html and finaly, not...
Actually, that cause error.

I propose to add something like that (line 118) :

                        var contentType =  response.headers['content-type'] || false;
                        if (contentType && contentType.indexOf('text/html') < 0
                            || contentType.indexOf('application/xhtml') < 0
                            || contentType.indexOf('application/xml') < 0) {
                            return ???????
                        }

@naonak naonak closed this Jul 22, 2011

@naonak

This comment has been minimized.

Show comment Hide comment
@naonak

naonak Jul 22, 2011

sorry

naonak commented Jul 22, 2011

sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment