Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the BaseUrl middleware #38

Merged
merged 1 commit into from
Jan 16, 2017

Conversation

bitwalker
Copy link
Collaborator

The old BaseUrl middleware was very naive, it simply set
the url field of the connection to whatever was provided.
This new version actually parses the URL and sets the different
Conn fields accordingly. It also validates that the base url actually
contains a host, so that a valid request can be made.

@coveralls
Copy link

coveralls commented Jan 16, 2017

Coverage Status

Coverage decreased (-1.3%) to 98.455% when pulling 4b4bf36 on bitwalker:fix-baseurl-middleware into 8957e54 on zhongwencool:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.3%) to 98.455% when pulling 4b4bf36 on bitwalker:fix-baseurl-middleware into 8957e54 on zhongwencool:master.

The old BaseUrl middleware was very naive, it simply set
the url field of the connection to whatever was provided.
This new version actually parses the URL and sets the different
Conn fields accordingly. It also validates that the base url actually
contains a host, so that a valid request can be made.
@coveralls
Copy link

coveralls commented Jan 16, 2017

Coverage Status

Coverage decreased (-0.9%) to 98.896% when pulling abff209 on bitwalker:fix-baseurl-middleware into 8957e54 on zhongwencool:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 98.896% when pulling abff209 on bitwalker:fix-baseurl-middleware into 8957e54 on zhongwencool:master.

@bitwalker bitwalker merged commit a60d98f into zhongwencool:master Jan 16, 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