Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: server/prpc/decoding.go

Issue 1638493004: server/prpc: updated server according to protocol (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/prpc/decoding.go
diff --git a/server/prpc/decoding.go b/server/prpc/decoding.go
index 874c48111b51c9267d89e6f4e071dadad013fb61..ed7a21509cdee2977ee44a52caca8397ec4595f1 100644
--- a/server/prpc/decoding.go
+++ b/server/prpc/decoding.go
@@ -64,7 +64,7 @@ func requestFormat(contentType string) (format, error) {
// readMessage decodes a protobuf message from an HTTP request.
// Does not close the request body.
-func readMessage(r *http.Request, msg proto.Message) *httpError {
+func readMessage(r *http.Request, msg proto.Message) *protocolError {
if msg == nil {
panicf("cannot decode to nil")
}
« no previous file with comments | « common/prpc/client.go ('k') | server/prpc/decoding_test.go » ('j') | server/prpc/encoding.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698