Explorar el Código

Some servers don't leave a space before the content type parameter list.

tags/v0.2
Ben Kurtovic hace 10 años
padre
commit
ccb3c022ca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 1
- 1
earwigbot/wiki/copyvios/__init__.py Ver fichero

@@ -82,7 +82,7 @@ class CopyvioMixIn(object):
return None

ctype_full = response.headers.get("Content-Type", "text/plain")
ctype = ctype_full.split("; ", 1)[0]
ctype = ctype_full.split(";", 1)[0]
if ctype in ["text/html", "application/xhtml+xml"]:
return HTMLTextParser(result).strip()
elif ctype == "text/plain":


Cargando…
Cancelar
Guardar