Skip to content

Commit 35e1831

Browse files
committed
Alignment: yhttp >= 8.1
1 parent 9262a6d commit 35e1831

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PKG_NAMESPACE = yhttp.markdown
22
PKG_NAME = yhttp-markdown
3+
VENV_NAME = yhttp
34
PYTEST_FLAGS = -vv
45
PYDEPS_COMMON = \
56
'coveralls' \

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
dependencies = [
18-
'yhttp >= 8.0.1, < 9',
18+
'yhttp >= 8.1.1, < 9',
1919
'pymlconf',
2020
'easycli',
2121
'markdown2',

yhttp/markdown/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .decorator import markdown2html
22

33

4-
__version__ = '3.0.1'
4+
__version__ = '3.1.0'

yhttp/markdown/decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def wrapper(req, *args, **kwargs):
2020
# Get the first chunk to for execute the handler
2121
firstchunk = next(body)
2222

23-
if if_contenttype and resp.type != if_contenttype:
23+
if if_contenttype and resp.contenttype != if_contenttype:
2424
# ignore converting to html
2525
if firstchunk is not None:
2626
yield firstchunk
@@ -31,7 +31,7 @@ def wrapper(req, *args, **kwargs):
3131
return
3232

3333
# Convert and serve the html
34-
resp.type = 'text/html'
34+
resp.contenttype = 'text/html'
3535
if firstchunk is not None:
3636
chunks.append(markdowner.convert(firstchunk).encode())
3737
for chunk in body:

0 commit comments

Comments
 (0)