-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
@@ -39,6 +39,12 @@ import ( | |||
|
|||
func (c *Controller) HandleVerify() http.Handler { | |||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |||
if c.config.MaintenanceMode { | |||
c.h.RenderJSON(w, http.StatusTooManyRequests, | |||
api.Errorf("server is read-only for maintenance").WithCode(api.ErrMaintenanceMode)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be in the release notes - changes device API surface
needs to be added to docs as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1142 added it to the response codes for both APIs in docs/api.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, whaught The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #1139
Proposed Changes
Release Note