Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(274)

Unified Diff: state/apiserver/tools.go

Issue 102920048: state/*: login to /ENVUUID/api URLs
Patch Set: state/*: login to /ENVUUID/api URLs Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: state/apiserver/tools.go
=== modified file 'state/apiserver/tools.go'
--- state/apiserver/tools.go 2014-04-07 04:50:31 +0000
+++ state/apiserver/tools.go 2014-05-30 07:45:48 +0000
@@ -34,6 +34,10 @@
h.authError(w, h)
return
}
+ if err := h.validateEnvironUUID(r); err != nil {
+ h.sendError(w, http.StatusNotFound, err.Error())
+ return
+ }
switch r.Method {
case "POST":

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b