File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ internals.transmit = function (response) {
112
112
request . raw . res [ Config . symbol ] = { request } ;
113
113
114
114
if ( response . variety === 'plain' ) {
115
- request . raw . res [ Config . symbol ] . result = response . source === '' || response . _isPayloadSupported ( ) ? response . source : null ;
115
+ request . raw . res [ Config . symbol ] . result = response . _isPayloadSupported ( ) ? response . source : null ;
116
116
}
117
117
}
118
118
Original file line number Diff line number Diff line change @@ -87,14 +87,6 @@ describe('Response', () => {
87
87
expect ( res . headers [ 'content-type' ] ) . to . equal ( 'text/plain; something=something; charset=utf-8' ) ;
88
88
} ) ;
89
89
90
- it ( 'retains empty string' , async ( ) => {
91
-
92
- const server = Hapi . server ( ) ;
93
- server . route ( { method : 'GET' , path : '/' , handler : ( ) => '' } ) ;
94
- const res = await server . inject ( '/' ) ;
95
- expect ( res . result ) . to . equal ( '' ) ;
96
- } ) ;
97
-
98
90
describe ( '_setSource()' , ( ) => {
99
91
100
92
it ( 'returns an empty string response' , async ( ) => {
You can’t perform that action at this time.
0 commit comments