File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -243,24 +243,24 @@ export class Http2CallStream extends Duplex implements Call {
243243 } else {
244244 this . http2Stream = stream ;
245245 stream . on ( 'response' , ( headers , flags ) => {
246- switch ( headers [ HTTP2_HEADER_STATUS ] ) {
246+ switch ( headers [ ':status' ] ) {
247247 // TODO(murgatroid99): handle 100 and 101
248- case ' 400' :
248+ case 400 :
249249 this . mappedStatusCode = Status . INTERNAL ;
250250 break ;
251- case ' 401' :
251+ case 401 :
252252 this . mappedStatusCode = Status . UNAUTHENTICATED ;
253253 break ;
254- case ' 403' :
254+ case 403 :
255255 this . mappedStatusCode = Status . PERMISSION_DENIED ;
256256 break ;
257- case ' 404' :
257+ case 404 :
258258 this . mappedStatusCode = Status . UNIMPLEMENTED ;
259259 break ;
260- case ' 429' :
261- case ' 502' :
262- case ' 503' :
263- case ' 504' :
260+ case 429 :
261+ case 502 :
262+ case 503 :
263+ case 504 :
264264 this . mappedStatusCode = Status . UNAVAILABLE ;
265265 break ;
266266 default :
You can’t perform that action at this time.
0 commit comments