mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 12:42:25 -05:00 
			
		
		
		
	[chore] update dependencies (#4196)
- go.opentelemetry.io/contrib/exporters/autoexport v0.60.0 -> v0.61.0 - go.opentelemetry.io/contrib/instrumentation/runtime v0.60.0 -> v0.61.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4196 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								311d9a1697
							
						
					
				
			
			
				commit
				
					
						143febb318
					
				
			
		
					 152 changed files with 2635 additions and 1688 deletions
				
			
		
							
								
								
									
										28
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/errors.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/errors.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -148,22 +148,20 @@ func DefaultHTTPErrorHandler(ctx context.Context, mux *ServeMux, marshaler Marsh | |||
| 	} | ||||
| 
 | ||||
| 	md, ok := ServerMetadataFromContext(ctx) | ||||
| 	if !ok { | ||||
| 		grpclog.Error("Failed to extract ServerMetadata from context") | ||||
| 	} | ||||
| 	if ok { | ||||
| 		handleForwardResponseServerMetadata(w, mux, md) | ||||
| 
 | ||||
| 	handleForwardResponseServerMetadata(w, mux, md) | ||||
| 		// RFC 7230 https://tools.ietf.org/html/rfc7230#section-4.1.2 | ||||
| 		// Unless the request includes a TE header field indicating "trailers" | ||||
| 		// is acceptable, as described in Section 4.3, a server SHOULD NOT | ||||
| 		// generate trailer fields that it believes are necessary for the user | ||||
| 		// agent to receive. | ||||
| 		doForwardTrailers := requestAcceptsTrailers(r) | ||||
| 
 | ||||
| 	// RFC 7230 https://tools.ietf.org/html/rfc7230#section-4.1.2 | ||||
| 	// Unless the request includes a TE header field indicating "trailers" | ||||
| 	// is acceptable, as described in Section 4.3, a server SHOULD NOT | ||||
| 	// generate trailer fields that it believes are necessary for the user | ||||
| 	// agent to receive. | ||||
| 	doForwardTrailers := requestAcceptsTrailers(r) | ||||
| 
 | ||||
| 	if doForwardTrailers { | ||||
| 		handleForwardResponseTrailerHeader(w, mux, md) | ||||
| 		w.Header().Set("Transfer-Encoding", "chunked") | ||||
| 		if doForwardTrailers { | ||||
| 			handleForwardResponseTrailerHeader(w, mux, md) | ||||
| 			w.Header().Set("Transfer-Encoding", "chunked") | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	st := HTTPStatusFromCode(s.Code()) | ||||
|  | @ -176,7 +174,7 @@ func DefaultHTTPErrorHandler(ctx context.Context, mux *ServeMux, marshaler Marsh | |||
| 		grpclog.Errorf("Failed to write response: %v", err) | ||||
| 	} | ||||
| 
 | ||||
| 	if doForwardTrailers { | ||||
| 	if ok && requestAcceptsTrailers(r) { | ||||
| 		handleForwardResponseTrailer(w, mux, md) | ||||
| 	} | ||||
| } | ||||
|  |  | |||
							
								
								
									
										10
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/grpc-ecosystem/grpc-gateway/v2/runtime/handler.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -153,12 +153,10 @@ type responseBody interface { | |||
| // ForwardResponseMessage forwards the message "resp" from gRPC server to REST client. | ||||
| func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marshaler, w http.ResponseWriter, req *http.Request, resp proto.Message, opts ...func(context.Context, http.ResponseWriter, proto.Message) error) { | ||||
| 	md, ok := ServerMetadataFromContext(ctx) | ||||
| 	if !ok { | ||||
| 		grpclog.Error("Failed to extract ServerMetadata from context") | ||||
| 	if ok { | ||||
| 		handleForwardResponseServerMetadata(w, mux, md) | ||||
| 	} | ||||
| 
 | ||||
| 	handleForwardResponseServerMetadata(w, mux, md) | ||||
| 
 | ||||
| 	// RFC 7230 https://tools.ietf.org/html/rfc7230#section-4.1.2 | ||||
| 	// Unless the request includes a TE header field indicating "trailers" | ||||
| 	// is acceptable, as described in Section 4.3, a server SHOULD NOT | ||||
|  | @ -166,7 +164,7 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha | |||
| 	// agent to receive. | ||||
| 	doForwardTrailers := requestAcceptsTrailers(req) | ||||
| 
 | ||||
| 	if doForwardTrailers { | ||||
| 	if ok && doForwardTrailers { | ||||
| 		handleForwardResponseTrailerHeader(w, mux, md) | ||||
| 		w.Header().Set("Transfer-Encoding", "chunked") | ||||
| 	} | ||||
|  | @ -204,7 +202,7 @@ func ForwardResponseMessage(ctx context.Context, mux *ServeMux, marshaler Marsha | |||
| 		grpclog.Errorf("Failed to write response: %v", err) | ||||
| 	} | ||||
| 
 | ||||
| 	if doForwardTrailers { | ||||
| 	if ok && doForwardTrailers { | ||||
| 		handleForwardResponseTrailer(w, mux, md) | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue