Follow golang convention for constants

This commit is contained in:
Martin Polden
2016-05-26 21:38:10 +02:00
parent 6e1ad53a3b
commit cfb86fe124
2 changed files with 9 additions and 9 deletions

View File

@ -26,7 +26,7 @@ func badRequest(err error) *appError {
}
func (e *appError) AsJSON() *appError {
e.ContentType = APPLICATION_JSON
e.ContentType = jsonMediaType
return e
}
@ -36,5 +36,5 @@ func (e *appError) WithMessage(message string) *appError {
}
func (e *appError) IsJSON() bool {
return e.ContentType == APPLICATION_JSON
return e.ContentType == jsonMediaType
}