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

Pass http status codes #5

Merged
merged 6 commits into from
Jun 21, 2016
Merged

Pass http status codes #5

merged 6 commits into from
Jun 21, 2016

Conversation

domano
Copy link
Contributor

@domano domano commented Jun 20, 2016

Http-Status codes are now passed through (the first one which is not beetween 200<>399):
The default is 502. Also the defaultErrorHandler has been changed, so that is uses a statusCode passed to the method instead of a Default 502-Bad Gateway.

Dino Omanovic added 5 commits June 20, 2016 14:36
# Conflicts:
#	composition/composition_handler.go
#	composition/content_fetcher.go
#	composition/fetch_definition.go
#	composition/http_content_loader_test.go
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.532% when pulling 6fd3c31 on pass-http-status-codes into 9adbe65 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.532% when pulling ee1aad4 on pass-http-status-codes into 9adbe65 on master.

Def *FetchDefinition
Err error
Content Content
HttpStatus int
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Http Status Code was already part of Content.httpStatusCode
so, there is no need to double it here in the fetch result.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 92.532% when pulling 87f66fb on pass-http-status-codes into 9adbe65 on master.

@smancke
Copy link

smancke commented Jun 21, 2016

+1

@domano domano merged commit 20d3c39 into master Jun 21, 2016
@domano domano deleted the pass-http-status-codes branch June 21, 2016 15:18
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.

3 participants