"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/google.golang.org/appengine/internal/api.go" between
gitea-1.9.3.tar.gz and gitea-1.9.4.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

api.go  (gitea-1.9.3):api.go  (gitea-1.9.4)
skipping to change at line 47 skipping to change at line 47
) )
var ( var (
// Incoming headers. // Incoming headers.
ticketHeader = http.CanonicalHeaderKey("X-AppEngine-API-Ticket") ticketHeader = http.CanonicalHeaderKey("X-AppEngine-API-Ticket")
dapperHeader = http.CanonicalHeaderKey("X-Google-DapperTraceInfo") dapperHeader = http.CanonicalHeaderKey("X-Google-DapperTraceInfo")
traceHeader = http.CanonicalHeaderKey("X-Cloud-Trace-Context") traceHeader = http.CanonicalHeaderKey("X-Cloud-Trace-Context")
curNamespaceHeader = http.CanonicalHeaderKey("X-AppEngine-Current-Namespa ce") curNamespaceHeader = http.CanonicalHeaderKey("X-AppEngine-Current-Namespa ce")
userIPHeader = http.CanonicalHeaderKey("X-AppEngine-User-IP") userIPHeader = http.CanonicalHeaderKey("X-AppEngine-User-IP")
remoteAddrHeader = http.CanonicalHeaderKey("X-AppEngine-Remote-Addr") remoteAddrHeader = http.CanonicalHeaderKey("X-AppEngine-Remote-Addr")
devRequestIdHeader = http.CanonicalHeaderKey("X-Appengine-Dev-Request-Id" )
// Outgoing headers. // Outgoing headers.
apiEndpointHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-En dpoint") apiEndpointHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-En dpoint")
apiEndpointHeaderValue = []string{"app-engine-apis"} apiEndpointHeaderValue = []string{"app-engine-apis"}
apiMethodHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Me thod") apiMethodHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-Me thod")
apiMethodHeaderValue = []string{"/VMRemoteAPI.CallRemoteAPI"} apiMethodHeaderValue = []string{"/VMRemoteAPI.CallRemoteAPI"}
apiDeadlineHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-De adline") apiDeadlineHeader = http.CanonicalHeaderKey("X-Google-RPC-Service-De adline")
apiContentType = http.CanonicalHeaderKey("Content-Type") apiContentType = http.CanonicalHeaderKey("Content-Type")
apiContentTypeValue = []string{"application/octet-stream"} apiContentTypeValue = []string{"application/octet-stream"}
logFlushHeader = http.CanonicalHeaderKey("X-AppEngine-Log-Flush-C ount") logFlushHeader = http.CanonicalHeaderKey("X-AppEngine-Log-Flush-C ount")
skipping to change at line 497 skipping to change at line 498
// Use a test ticket under test environment. // Use a test ticket under test environment.
if ticket == "" { if ticket == "" {
if appid := ctx.Value(&appIDOverrideKey); appid != nil { if appid := ctx.Value(&appIDOverrideKey); appid != nil {
ticket = appid.(string) + defaultTicketSuffix ticket = appid.(string) + defaultTicketSuffix
} }
} }
// Fall back to use background ticket when the request ticket is not avai lable in Flex or dev_appserver. // Fall back to use background ticket when the request ticket is not avai lable in Flex or dev_appserver.
if ticket == "" { if ticket == "" {
ticket = DefaultTicket() ticket = DefaultTicket()
} }
if dri := c.req.Header.Get(devRequestIdHeader); IsDevAppServer() && dri !
= "" {
ticket = dri
}
req := &remotepb.Request{ req := &remotepb.Request{
ServiceName: &service, ServiceName: &service,
Method: &method, Method: &method,
Request: data, Request: data,
RequestId: &ticket, RequestId: &ticket,
} }
hreqBody, err := proto.Marshal(req) hreqBody, err := proto.Marshal(req)
if err != nil { if err != nil {
return err return err
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)