Skip to content

Commit

Permalink
chore: regenerate sources (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Apr 29, 2024
1 parent de93c4c commit 9719936
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 0 deletions.
22 changes: 22 additions & 0 deletions server/genrest/compliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func (backend *RESTBackend) HandleRepeatDataBody(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -110,6 +112,8 @@ func (backend *RESTBackend) HandleRepeatDataBodyInfo(w http.ResponseWriter, r *h
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -191,6 +195,8 @@ func (backend *RESTBackend) HandleRepeatDataQuery(w http.ResponseWriter, r *http
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -250,6 +256,8 @@ func (backend *RESTBackend) HandleRepeatDataSimplePath(w http.ResponseWriter, r
backend.StdLog.Printf(" urlPathParams (expect 5, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 5 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 5, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -314,6 +322,8 @@ func (backend *RESTBackend) HandleRepeatDataPathResource(w http.ResponseWriter,
backend.StdLog.Printf(" urlPathParams (expect 3, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 3 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 3, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -378,6 +388,8 @@ func (backend *RESTBackend) HandleRepeatDataPathResource_1(w http.ResponseWriter
backend.StdLog.Printf(" urlPathParams (expect 3, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 3 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 3, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -442,6 +454,8 @@ func (backend *RESTBackend) HandleRepeatDataPathTrailingResource(w http.Response
backend.StdLog.Printf(" urlPathParams (expect 2, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 2 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 2, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -506,6 +520,8 @@ func (backend *RESTBackend) HandleRepeatDataBodyPut(w http.ResponseWriter, r *ht
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -578,6 +594,8 @@ func (backend *RESTBackend) HandleRepeatDataBodyPatch(w http.ResponseWriter, r *
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -650,6 +668,8 @@ func (backend *RESTBackend) HandleGetEnum(w http.ResponseWriter, r *http.Request
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -709,6 +729,8 @@ func (backend *RESTBackend) HandleVerifyEnum(w http.ResponseWriter, r *http.Requ
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down
16 changes: 16 additions & 0 deletions server/genrest/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func (backend *RESTBackend) HandleEcho(w http.ResponseWriter, r *http.Request) {
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -110,6 +112,8 @@ func (backend *RESTBackend) HandleEchoErrorDetails(w http.ResponseWriter, r *htt
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -182,6 +186,8 @@ func (backend *RESTBackend) HandleExpand(w http.ResponseWriter, r *http.Request)
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -257,6 +263,8 @@ func (backend *RESTBackend) HandlePagedExpand(w http.ResponseWriter, r *http.Req
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -329,6 +337,8 @@ func (backend *RESTBackend) HandlePagedExpandLegacy(w http.ResponseWriter, r *ht
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -401,6 +411,8 @@ func (backend *RESTBackend) HandlePagedExpandLegacyMapped(w http.ResponseWriter,
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -473,6 +485,8 @@ func (backend *RESTBackend) HandleWait(w http.ResponseWriter, r *http.Request) {
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -545,6 +559,8 @@ func (backend *RESTBackend) HandleBlock(w http.ResponseWriter, r *http.Request)
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down
24 changes: 24 additions & 0 deletions server/genrest/iampolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func (backend *RESTBackend) HandleSetIamPolicy(w http.ResponseWriter, r *http.Re
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -110,6 +112,8 @@ func (backend *RESTBackend) HandleSetIamPolicy_1(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -182,6 +186,8 @@ func (backend *RESTBackend) HandleSetIamPolicy_2(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -254,6 +260,8 @@ func (backend *RESTBackend) HandleSetIamPolicy_3(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -326,6 +334,8 @@ func (backend *RESTBackend) HandleGetIamPolicy(w http.ResponseWriter, r *http.Re
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -390,6 +400,8 @@ func (backend *RESTBackend) HandleGetIamPolicy_1(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -454,6 +466,8 @@ func (backend *RESTBackend) HandleGetIamPolicy_2(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -518,6 +532,8 @@ func (backend *RESTBackend) HandleGetIamPolicy_3(w http.ResponseWriter, r *http.
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -582,6 +598,8 @@ func (backend *RESTBackend) HandleTestIamPermissions(w http.ResponseWriter, r *h
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -654,6 +672,8 @@ func (backend *RESTBackend) HandleTestIamPermissions_1(w http.ResponseWriter, r
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -726,6 +746,8 @@ func (backend *RESTBackend) HandleTestIamPermissions_2(w http.ResponseWriter, r
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -798,6 +820,8 @@ func (backend *RESTBackend) HandleTestIamPermissions_3(w http.ResponseWriter, r
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down
10 changes: 10 additions & 0 deletions server/genrest/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func (backend *RESTBackend) HandleCreateUser(w http.ResponseWriter, r *http.Requ
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -110,6 +112,8 @@ func (backend *RESTBackend) HandleGetUser(w http.ResponseWriter, r *http.Request
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -174,6 +178,8 @@ func (backend *RESTBackend) HandleUpdateUser(w http.ResponseWriter, r *http.Requ
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -255,6 +261,8 @@ func (backend *RESTBackend) HandleDeleteUser(w http.ResponseWriter, r *http.Requ
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -319,6 +327,8 @@ func (backend *RESTBackend) HandleListUsers(w http.ResponseWriter, r *http.Reque
backend.StdLog.Printf(" urlPathParams (expect 0, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 0 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 0, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down
4 changes: 4 additions & 0 deletions server/genrest/locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (backend *RESTBackend) HandleListLocations(w http.ResponseWriter, r *http.R
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down Expand Up @@ -100,6 +102,8 @@ func (backend *RESTBackend) HandleGetLocation(w http.ResponseWriter, r *http.Req
backend.StdLog.Printf(" urlPathParams (expect 1, have %d): %q", numUrlPathParams, urlPathParams)
backend.StdLog.Printf(" urlRequestHeaders:\n%s", resttools.PrettyPrintHeaders(r, " "))

resttools.IncludeRequestHeadersInResponse(w, r)

if numUrlPathParams != 1 {
backend.Error(w, http.StatusBadRequest, "found unexpected number of URL variables: expected 1, have %d: %#v", numUrlPathParams, urlPathParams)
return
Expand Down
Loading

0 comments on commit 9719936

Please sign in to comment.