Commit a3539ed
committed
call
This *may* require that the status was already sent, as well as the
state passed to `send_error_trailers` to decided whether or not to
send grpcweb trailers.
And so:
* `send_error_trailers` now uses `check_sent_resp` instead of doing that
check itself
* `check_sent_resp` now takes an optional `status`, with 200 as the
default
* state is passed to `send_error_trailers`
* `send_error_trailers` calls `stream_grpcweb_trailers` before
`cowboy_req.stream_trailers` (which closes the connection as trailers
implies fin)stream_grpcweb_trailers from send_error_trailers
1 parent 987365d commit a3539ed
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
630 | 632 | | |
631 | 633 | | |
632 | 634 | | |
633 | | - | |
634 | | - | |
| 635 | + | |
| 636 | + | |
635 | 637 | | |
636 | 638 | | |
637 | | - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| |||
0 commit comments