Skip to content

Cleanup the UA detection method - #165

Open
HosseyNJF wants to merge 1 commit into
evnchn:mdp2-ua-fallbackfrom
HosseyNJF:mdp2-ua-fallback
Open

Cleanup the UA detection method#165
HosseyNJF wants to merge 1 commit into
evnchn:mdp2-ua-fallbackfrom
HosseyNJF:mdp2-ua-fallback

Conversation

@HosseyNJF

Copy link
Copy Markdown

This will make the code a tad more clean. Also another notable change is that I changed the condition so that if a user includes text/markdown in the Accept header before text/html, it means that it prefers markdown and will get served by markdown instead of HTML.

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.

1 participant