Skip to content

Fixed #6 static files issue#7

Merged
iAmMrinal0 merged 4 commits into
geekskool:masterfrom
alenthomas:master
Dec 21, 2017
Merged

Fixed #6 static files issue#7
iAmMrinal0 merged 4 commits into
geekskool:masterfrom
alenthomas:master

Conversation

@alenthomas

Copy link
Copy Markdown
Contributor

The issue was with route_match

if no regex matched it returned None which caused TypeError
workaround by returning a proper http_handler in case regex matching fails

- set self.PRE = False
- set self.POST = True
- appends footer to response["content"]
- changes response["Content-Length"] to new value
- change the route_match return statement
- now returns a proper http handler in case of regex mismatch
@iAmMrinal0 iAmMrinal0 merged commit a25bea5 into geekskool:master Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants